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

You are here: Designer > Macro-Typicals > Using the value set of a macro

Using the value set of a macro

The name of the placeholder of the macro must have a specific syntax so that the value sets of a macro can be used in the DesignerConfigurators and sets of rules are defined on the basis of EPLAN macros in Designer. These form the basis for the configuration and the automatic generation of the project documentation.. This means that the placeholder object is referenced with a macro variable. The available value sets are then displayed in a drop-down list in the Designer.

Preconditions

  • You have opened the library in which the macro is located.
  • The macro contains a placeholder object.

Procedure

  1. Open the macro in the graphical editor.
  2. Double-click the "anchor" symbol of the desired placeholder object.
  3. Enter a name for the placeholder object in the Name field in the Properties <...>: Placeholder object dialog. Use the following syntax for the name of the placeholder: #<Name>. The string that you enter for Name stands for the name of the variable that is displayed to you in the Designer.
  4. Call up the Designer dialog.
  5. Select the Macro-TypicalA Macro-Typical is an organization structure that contains information about the structure and the usage of the macros that are needed in the project. Each Macro-Typical maps a part of the machine / plant that is to be configured. that you wish to edit in the sidebar.
  6. The view switches to the editing mode.
  1. In the Macro navigator mark the macro that you want to add to the Macro-Typical.
  2. Click the Add macro button in the workspace.
  3. The macro is added at the end of the list of Elements.
  1. Click the path of macro to extend the view.
  2. The placeholder object of the macro is displayed in the extended view under Variables. The available value sets are then displayed in a drop-down list.
  1. Select the desired value set from the drop-down list.
  2. The corresponding value set is used for the referenced variables of the placeholder object. The available value sets are not displayed in the Project BuilderThe project-specific configuration and the automatic generation of the project documentation takes place in the Project Builder on the basis of the configurators and sets of rules defined in the Designer..

or

  1. Select no value set.
  2. The available value sets are displayed in the Project Builder.

Generating the configuration variable from a placeholder object

After you have added a macro that contains a placeholder object with value sets to a Macro-Typical, you can generate a configuration variable fully automatically from the placeholder object. The configuration variable subsequently contains the available value sets as predefined values.

Preconditions

  • You are in the editing mode of a macro typical.
  • The Macro-Typical contains a macro that contains a placeholder object with value sets.

Procedure

  1. Click the path of macro to extend the view.
  2. The placeholder object of the macro is displayed in the extended view under Variables. The available value sets are then displayed in a drop-down list.
  1. Click the button next to the input field for the corresponding placeholder object.
  2. A configuration variable with the name of the placeholder object is generated in the upper section of the workspace.
  3. The available value sets are added to the list of the predefined values.

We would like to learn from you. In order to improve the help system continuously, we are documenting your behavior with Google Analytics (Additional information & opt-out).