CopyRefObjSetCodes
You can use this function for Optiva Copy Methods.
Purpose
Adds the new object to the set codes of the reference object, if those set codes exist for the new object type.
See the Infor PLM for Process Application Configuration Guide.
Syntax
Dim variable As Long = CopyRefObjSetCodes()
	     Arguments
None
Example
This script is in a copy method for a specification that is created
		  from the 
		  References tab of a formula
		  (Object Type = SPECIFICATION, Reference Type = FORMULA, Events = Create
			 From As New). It adds the specification to set codes to which the
		  formula belongs that are the same for specifications. 
		
Dim lSets As Long = CopyRefObjSetCodes()