Model Parts, Diagrams, Dictionary Items, and Properties > Properties > Derivation script (property of dependency and variant)
Derivation script (property of dependency and variant)
For automation interface information about the Derivation Script property (Script through the automation interface), see the automation interface topics for a Variant or Variation Point, Variant Parameter and Script in the Related Topics:
When you select the Has Parameter check box for a Variant or Dependency, Modeler creates a Variant Parameter object through the Parameter association. The Variant Parameter object is used to record the derivation script that is displayed on the Derivation Script tab of the Variant or Dependency's Property Pages.
When you select the Derived check box for a Variant or Dependency, Modeler creates a Script object for the Variant Parameter through the Script association. This script object records the derivation script.
This property specifies the script for deriving the parameter value of a Dependent or Variant.
* 
A Derivation Script must not make any changes to a Model.
For information about working with derivation scripts for a parameter value, see Script functions, attributes and objects - derivation scripts for variability parameters.
For a Dependency or Variant's parameter the script can return any plain text. The text is not validated against possible Boolean or Enumeration values.
By default, the Derivation Script property is blank.
You use the Code Editor to edit Derivation Script code. The Code Editor language is always Visual Basic when editing Derivation Script code, irrespective of the Language that is set for parent Packages and the Model. For information about the Code Editor, including setting the code language to use, see Overview of the Code Editor.
This property is set on the Derivation Script tab of a Dependency or Variant's Property Pages. You can click the Editor button and change the code in the Code Editor window. In addition, you can add model object references to the Derivation Script code.
You can show the derivation script of a Variant or Requires Dependency on a diagram: right-click the Variant or Requires Dependency, and select Add > Derivation Script.
* 
If you want a derived value of a parameter to be read-only in the Decision Set Editor and Variant Selector, ensure that you clear the Editable check box on the Parameter tab of the Variant's Property Pages.
This property is available only when the Derived check box is selected on the Parameter tab of a Dependency or Variant's Property Pages.
* 
To write scripts you require a good working knowledge of the VBScript language, the Modeler Meta Model and the Modeler Automation Interface. If you run a script that has errors, those errors can corrupt Modeler model data and make Modeler crash.
The following section provides information about the items and diagrams for which Derivation Script is a property. For more information about an item or diagram, click it.
Is property of
Was this helpful?