4.2.3. Replace [DWG] (SuCri2ReplaceExistingSupportDWG)

Replace [DWG] (SuCri2ReplaceExistingSupportDWG)

This guide will walk you through the process of efficiently replacing existing primary supports in your active AutoCAD Plant 3D DWG drawing using the SuCri plugin and a mapping table. This allows for an automated switch between different component types in your active spec based on their family descriptions.

Prerequisites

Step-by-Step Instructions

The following example describes swapping "Clamps" for "Pipe Shoes".

1. Open SuCri User Interface and Load Settings

  1. Start AutoCAD Plant 3D and navigate to the SuCri ribbon.
  2. Click on the SuCri icon to open the main dialog window.
    Result: The SuCri dialog window is displayed.
  3. Click the Load Settings button in the dialog.
  4. Select the relevant settings file (XML or INI file) in the file explorer.
  5. Open this file with a text editor (e.g., Notepad++ or Visual Studio Code).
    Result: The configuration file is ready for editing.

2. Define the Mapping Table for the Replacement

  1. Search the file for the ReplaceSupport section.
  2. Insert your replacement rule into the table structure:
    • Left Side (OldFamilyDescription): Enter the name of the current support (e.g., Clamps).
    • Right Side (NewFamilyDescription): Enter the name of the new support (e.g., Pipe Shoes).
  3. Save the file with Ctrl+S and close the editor.
    Result: The mapping rules are now stored in the system.

3. Execute the Replacement Process

  1. If necessary, click Refresh or Reload Settings in the SuCri interface to apply the changes.
  2. Select the command Replace [DWG].
    Result: SuCri scans the drawing and replaces the defined components.
  3. Check the result in your DWG drawing.
    Result: The old supports have been successfully replaced by the new components from the spec.

Important Notes

Troubleshooting

---