Create a Compound Label Using the Content Module - Intergraph Smart 3D - Reference Data

Intergraph Smart 3D Drawings and Reports Reference Data

Language
English
Product
Intergraph Smart 3D
Subproduct
Drawings and Reports
Search by Category
Reference Data
Smart 3D Version
12 (2018)

Although some label rules only use one label template in an .xml file, you can call multiple label templates in an .xml file to create a compound label with independent, manually placed components.

  • This procedure must be done manually. You cannot use the Label Rule Manager to create a compound label.

  • You must have write permission to the SharedContent folder.

  • Smart 3D delivers label templates and symbol files in the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder.

  • This method produces two independent labels on a drawing. The software does not always place the labels in the same position, and the labels behave as independent labels. For information on combining labels into one symbol, see Create a Compound Label with a Combined Symbol.

  • The software places these compound labels with a single origin point, as opposed to separate origins for each symbol. For information on creating a compound label with individual origin points, see Create a Compound Label Using Label Rules.

  • Compound labels created from content modules must be placed manually. You cannot add these labels to a view style for automatic placement.

Create a new compound label

  1. Browse to the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder, and create a new .xml label template called Instrument Name_Elevation.

    SHARED Tip To create a new .xml label template, right-click in the \Templates folder and select New > Text Document. Rename New Text Document.txt to Instrument Name_Elevation.xml, and then click Yes when the software prompts you to confirm the file extension change.

    -OR-

    Create a new file called Instrument Name_Elevation.xml using a text editor or a third-party .xml document editor.

  2. Open Instrument Name_Elevation.xml in a text editor or a third-party .xml document editor, and add the following .xml code:

    <?xml version="1.0" encoding="UTF-8"?>

    <label>

    <content>

    <contentModule value="DrawingLabelHelper" />

    <embeddedLabel>Instrument Elevation_Equipment_Name</embeddedLabel>

    <embeddedLabel>SP3DCoordinate_CA_JL</embeddedLabel>

    </content>

    </label>

  3. Save the changes, and then close the file.

Create a new .sym file

  1. Make a copy of Instrument Name_Elevation.sym in the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder. Rename the copy to Instrument Elevation_Equipment_Name.sym.

  2. Open Instrument Elevation_Equipment_Name.sym in the SmartSketch Drawing Editor, and delete any existing symbols or graphics.

  3. Open Symbol Explorer , and drag Instrument Elevation_Equipment_Name.sym and SP3DCoordinate_CA_JL.sym to the active sheet.

  4. Right-click the Instrument Elevation_Equipment_Name symbol, and select Properties.

    The Symbol Properties dialog box displays.

  5. On the User tab, type EmbeddedLabel in the Name box, and then type Instrument Elevation_Equipment_Name in the Value box.

  6. Click Add, and then click OK.

    The Text Box Properties dialog box closes.

  7. Right-click the SP3DCoordinate_JA_CL symbol, and then select Properties.

    The Symbol Properties dialog box displays.

  8. On the User tab, type EmbeddedLabel in the Name box.

  9. Type SP3DCoordinate_JA_CL in the Value box. Click Add, and then click OK.

    The Symbol Properties dialog box closes.

  10. Save the changes, and then exit the SmartSketch Drawing Editor.

  11. Add the new compound label to the appropriate view style. For more information on adding a label rule to a view style, see View Style Properties Dialog Box.

    In this example, the software creates a new compound label called Instrument Elevation_Equipment_Name.

Example

The following illustration shows a compound label that combines the Instrument Elevation_Equipment_Name and SP3DCoordinate_JA_CL symbols.

Instrument Name_Elevation

1 - Name component
2 - Elevation component