Symbol macros are special macros with the *.ems file suffix. They are created when you select the desired elements in the schematic and then select the menu item Edit > Create window macro / symbol macro. The following data is then internally stored in the macro data:
- A list of the symbol libraries where the symbols for the macro come from
- Position (row number), where the symbol library is to be entered into the source project settings (Options > Settings > Projects > "Project name" > Management > Symbol libraries)
- Symbol number
- Variant number.
On insertion of such macros into the schematic page (Insert > Window macro / symbol macro), the system then locates the position of the symbol library where the macro comes from in the project settings list. This information is then used to adapt the item number of all symbols in the macro before the macro is inserted. If a symbol library does not exist in the project, then the library from the settings at the position specified in the macro is used. If no symbol library is specified at this position in the settings, or the symbol with the appropriate symbol or variant number is not present, then a red "X" is inserted instead of the symbol and an appropriate message is generated, in which you can see the names, and positions in the library, that were used to create the macros.
See also