I am using SOLIDWORKS Electrical and have created macros from complete schematic pages.
My project contains approximately 20 schematic pages, and I created one macro for each page. These are not PLC-only macros. Each macro represents an entire schematic page and contains various electrical components such as relays, terminals, sensors, wiring, and in some cases part of a PLC.
The PLC itself is a single physical PLC, but its I/O modules are distributed across several schematic pages. Therefore, portions of the same PLC exist in multiple page macros.
My workflow is:
- Create a complete schematic page.
- Save that page as a macro.
- Repeat for all project pages (around 20 macros).
- Insert the macros into a new project.
- Run Excel Automation / PLC generation.
Expected result:
- Only one PLC board should exist in the project.
- All PLC symbols appearing in different page macros should belong to the same PLC.
- PLC Management should show only the original PLC board.
Actual result:
- When the macros are inserted and Excel Automation is executed, SOLIDWORKS Electrical creates multiple PLC boards.
- It appears that every macro containing part of the PLC is treated as a separate PLC definition.
- PLC Management ends up showing duplicate PLC boards even though there is only one physical PLC in the design.
Example:
The PLC is spread across pages 3, 7, 10, and 15.
Expected:
- PLC Board BRD1
- Page 3 I/O
- Page 7 I/O
- Page 10 I/O
- Page 15 I/O
Actual:
- BRD1
- BRD1 (duplicate)
- BRD1 (duplicate)
- BRD1 (duplicate)
Question:
What is the correct method for creating page-level macros when a single PLC is distributed across multiple pages?
Should PLC objects be excluded from page macros and recreated later, or is there a way to keep all PLC references associated with one PLC board after macro insertion and Excel Automation?
Any recommended workflow or settings to prevent duplicate PLC creation would be greatly appreciated.
