CopyRefObjTechParams

You can use this function for Optiva Copy Methods.

Purpose

Copies parameters and values to the new object from the reference object.

Syntax


Dim variable As Long = CopyRefObjTechParams(Optional copyAttributes As Boolean = True)

Arguments

Part Description
copyAttributes When copying technical parameters from a primary object to a newly created reference object, if the objects are of different types (i.e. formula and spec) and you do not want the attribute columns copied over, specify this parameter to false. This parameter does not apply when the object types are the same (i.e. formula to formula). In this case, attribute columns will always be copied over.

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 all of the formula parameters, even if they have no value, to the specification. If a formula parameter has a value, it is added as the target value in the specification.


Dim lParam As Long = CopyRefObjTechParams()