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

Inserting Macros

Macros can be inserted on project pages as window or symbol macros. New project pages are created when inserting page macros.

The macros are generally broken up when inserted, but it is still possible to change the data via the placeholder objects.

Insert window macros and symbol macros

Preconditions:

  1. Select the following menu items: Insert > Window macro / symbol macro. (In addition to this, window and symbol macros can also be inserted via the popup menu.)
  2. Select the desired macro in the selection dialog. The File type field can be used to select not only window (*.ema) or symbol macros (*.ems), but also each or both of the macro types(*.ema, *.ems).
  3. If a selected macro has variants, you can use the Variant drop-down list to specify which variant should be inserted.
  4. Click [Open].

    The macro is attached to the cursor and can be positioned wherever you want (single click).

    If there are value sets present, please select a fitting value set for the placeholder object in the following Select value set - <Placeholder name> dialog. The inserted components contain the data from the value set.

    If there are device tags in the DT macro, and you selected the With prompt option under the Options > Settings > Projects > "Project name" > Devices > Numbering (online) menu items in the On insertion of macros and copies group box, EPLAN opens the Insertion mode dialog. Specify here how the device tags in the inserted macro should be numbered.
  5. The macro is still attached to the cursor. Insert the macro again if you want.
  6. End the action via the Cancel action popup menu item or via the [Esc] button.

Notes:

Insert page macros

  1. Select the following menu items: Page > Page macro > Insert
  2. In the selection dialog select the desired macro(s). (Multiple selection is possible for page macros!) When doing this, you can choose selection criterion window (*.ema) or symbol macros (*.ems) in the File type field in addition to page macros (*.emp).
  3. Click [Open].
  4. In the Adapt structure dialog you specify the placement of the new pages in the page structure of your project.

    Depending on the number of page macros to be inserted this dialog is displayed several times - for each individual macro.
  5. Click [OK]. The continuation of this process is the same as for copying pages (see Adapting the Structure).

    The pages are created or overwritten.

Notes:

Tip:

You can insert macros using drag & drop, by dragging a selected file from the Windows Explorer into the graphical editor or the page navigator of your project. Here too multiple selection is possible for page macros.

See also