You have opened a project.
- File > Settings > Projects > "Project name" > Graphical editing > Update macros / Exchange macro variant
- You have inserted a macro with a macro box on a project page. Select the Update macro popup menu for the macro box. Click […] next to the Settings field in the Update macros dialog.
- There are prepared or inserted macros in the project. Tab Master data > Command group Macros > Navigator. You have marked one or more macros in the Macros - <Project name> dialog. Select the Update macros popup menu item. Click […] next to the Settings field in the Update macros dialog.
- You have inserted a macro with a macro box on a project page. Select the Exchange macro variant popup menu item for the macro box. Click […] next to the Settings field in the Exchange macro variant dialog.
- There are prepared or inserted macros in the project. Tab Master data > Command group Macros > Navigator. You have selected a macro in the Macros - <Project name> dialog. Select the Exchange macro variant popup menu item. Click […] next to the Settings field in the Exchange macro variant dialog.
In this dialog, specify the settings for updating macros and for exchanging macro variants and save these as a scheme.
Overview of the main dialog elements:
Select the scheme that you wish to use or edit from the drop-down list. You can also use the adjacent toolbar for this purpose.
Perform assignment preferably graphically:
As a default, when updating or replacing a macro variant, the function definition is used to specify which function in the placed macro is exchanged for which function in the macro file.
If this check box is selected, the functions of a macro to be updated are determined based on their position in the macro. You can use this to exchange a component at one point in the macro with a component with a different function definition (for example, replacing a terminal with a plug). The device tag remains the same. If there is no component at the same position in the macro, the graphically next component with a suitable function definition is used.
As a default, graphical information (formatting, property arrangements, etc.) is transferred from the macro file to the inserted macro during the update or exchange of the macro variant. Logical information on the other hand is not transferred and is retained at the inserted macro.
If this check box is activated, modified logical information (connection point designations, modified symbols, assigned parts) from the macro file is also transferred while updating or exchanging the macro variant in the inserted macro. Only the device tags - also those of the interruption points - remain.
Assigned value sets of placeholder objects are retained at the inserted macros in most cases when the macros are updated or when the macro variant is exchanged. If this is not the case (for example because the macro includes a highly modified design or several placeholder objects), you activate this check box. This means that the value sets last selected in the project are assigned again to the inserted macros when updating or exchanging the macro variant.
See also