To Convert Device Styles to Blocks

You can convert a set of device styles to their individual components: the style settings and the AutoCAD® blocks used by the style views. The output of the conversion process includes:

Typically, you use this process when you have a set of existing device styles that you want to customize. You convert the device styles to their individual components, customize the components (the blocks and the style settings in the script), and then use the modified script to convert the modified blocks to new device styles.

Note: This conversion process produces only the previously specified output. Your original device style drawings remain unchanged.

To convert a set of device styles to their individual blocks

  1. Click Manage tab MEP Content panel Decompose Devices .

  2. In the Decompose Devices dialog box, for File to Decompose, then select the drawing (DWG file) that contains the device styles to convert:
    If you want to… then…
    convert the device styles in the current drawing open in AutoCAD MEP 2023 toolset click Current Drawing.
    convert the device styles in a drawing stored locally on your computer click the radio button beside the file path, click Browse, select the drawing file, and click Open.
  3. For Block, click Browse, and select the folder in which to place the drawings that contain the AutoCAD blocks used by the device style views. Click OK.

    If the selected folder already contains drawings, then during the conversion process, you will be prompted about overwriting drawings with the same name.

    Note: Like all AutoCAD® blocks, the blocks in the output drawings are stored in an invisible data area called the block definition table.
  4. For Script Path, click Browse, and select the file name of the device conversion script to create:
    If you want to… then…
    create a new script in the Select File dialog box, specify the location for the new script, enter a name, and click Save.
    overwrite the contents of an existing script in the Select File dialog box, select the drawing, click Save, and then click Yes to confirm that the contents of the drawing can be overwritten.
  5. Click Decompose.

    The software converts the device styles into the blocks used by the style views and generates an associated script based on the style definitions.

    Note: Because a device style specifies only the positions of the connectors and not the method in which they were initially specified, the script sets the default value of the Connector Placement property of all connectors to Specify. As a result, before you reuse the conversion script to create new device styles, you might need to change these values.
  6. You can now modify the blocks and the script, and then use them to create new device styles based on your modifications.