This functionality is only available for certain module packages. Info / Copyright

Working with instances

The usage of instances allows you to define the functions of your product, which may occur several times, within one Typical-Group. At the definition of Typical-Groups you have the possibility to allow the generation of several instances of an element of the Typical-Group. The designer in Project Builder then has the possibility to flexibly extend the functional scope of your product. This makes the scope of the project documentation unlimited. It is not necessary to specify the maximum scope of your product in the rules. In addition, the maintainability of a configurator is significantly improved since only one part in the rules must be adjusted to perform changes in all instances of an element.

Additional, internal variables are available in the formulas for controlling the behavior of the instances. Use these variables to specifically define rules for the behavior of single instances (see example).

Internal variables Type Meaning
_index_ Integer Contains the index of the current instance. The value of the variable for the first instance is 0, for the second instance 1, etc.
_count_ Integer Contains the number of all instances. If three instances are generated in the Project Builder, the value of the variable is 3.
_first_ Boolean Contains the value 'true' for the first instance. Contains the value 'false' for all other instances.
_last_ Boolean Contains the value 'true' for the last instance. Contains the value 'false' for all other instances.
_even_ Boolean Contains the value 'true' for all instances with an even index. Contains the value 'false' for all other instances.
_odd_ Boolean Contains the value 'true' for all instances with an odd index. Contains the value 'false' for all other instances.

Preconditions

Procedure

  1. Drag&Drop the element for which you want to allow several instances onto the desired position in the workspace.
  2. Click the element in the workspace.
  3. The view is extended with the structure and variable information that exists in the element.
  1. Activate the Allow instances check box.
  2. Two new buttons appear. The Infinite button is active. The designer in Project Builder can generate any number of instances of the element.
  1. Click the Configure button, if you want to limit the number of instances.
  2. A new input box appears.
  1. In the input box enter the maximum number of instances the designer may generate in the Project Builder.
  2. Use the internal variables to reference the configuration variables of the element.
  3. By using the internal variables you define specific rules for the behavior of single instances (see example).

Note

Instances are available as of the Advanced module package.

Read more

"Managing Typical-Groups"

"Configuration variables: Basics"

"Managing configuration variables"