Create a Compound Label with a Combined Symbol - 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.1 (2019)

To create a custom compound label with combined symbols, modify the label .xml file and the label .sym file. Compound labels with combined symbols are always positioned together. To place a compound label that creates two independent symbols, see Create a Compound Label Using Label Rules.

  • 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.

  • Label rules are delivered in the [Reference Data Folder]\SharedContent\Drawings\Catalog\Rules\LabelRules folder.

  • This method produces a single independent symbol that contains two labels. If you reposition one of the labels, the software automatically repositions the second label.

  • You must have already defined the view style type and the View Style Properties dialog must be displayed. See Define View Style Dialog and View Style Properties Dialog.

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

Create a compound label rule

  1. Select BopPipePort1_CA_JL.xml in the Select Label Rule dialog box, as shown below.

    select label rule.png_for combined symbol

  2. Click Copy.

    The Copy Label Rule dialog box displays.

  3. Select the label rule name in the Change Rule Name text box and type BopPipePort1_CA_JL_Custom. Click Copy.

    The Copy Label Rule dialog box closes. BopPipePort1_CA_JL_Custom displays in the Select Label Rule dialog box. The software creates the following files using BopPipePort1_CA_JL_Custom for the name:

    BopPipePort1_CA_JL_Custom.sym symbol file

    BopPipePort1_CA_JL_Custom.xml label rule template

    BopPipePort1_CA_JL_Custom.rtp report template

    BopPipePort1_CA_JL_Custom.rqe query file

    BopPipePort1_CA_JL_Custom.rfm formatting file

  4. Using Windows Explorer, browse to the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder and open BopPipePort1_CA_JL_Custom.xml in a text editor or a third-party XML document editor.

  5. Add a label to the resulting symbol as shown in the modified XML example below.

    Original

    <content>
    <contentModule value="DrawingLabelHelper"/>
    <ID attributeName=
    "BopPipePort1">BopPipePort1_CA_JL_Custom.rtp</ID>
    </content>

    Modified

    <content>
    <contentModule value="DrawingLabelHelper"/>
    <ID attributeName=
    "BopPipePort1">BopPipePort1_CA_JL_Custom.rtp</ID>
    <ID attributeName=
    "Piping Plan_LineNumber_Longest Segment">
    Piping Plan_LineNumber_Longest Segment.rtp</ID>
    </content>

  6. Repeat the previous step to add more labels to the symbol.

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

Customize the symbol file and add it to the compound label rule

  1. Browse to the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder, and then open BopPipePort1_CA_JL_Custom.sym in the SmartSketch Drawing Editor.

    SmartSketch Drawing Editor displays the label.

    Compound Label_Custom sym file

  2. Select and copy the text box, and then paste it in a suitable location (for example, relative to the existing symbol).

    Copying and pasting the existing text box ensures that the text box properties Attribute set value is SP-Drawings. If the Attribute set value is not SP-Drawings, the symbol does not function.

  3. Click Select Tooland right-click the pasted label. Select Properties.

    The Text Box Properties dialog box displays.

  4. Click the User tab, and then type Piping Plan_LineNumber_Longest Segment in the Value text box.

  5. Click OK.

    The Text Box Properties dialog box closes.

    SHARED Tip The text you type in the Value box matches the ID node attributeName value in the in the label template .xml file.

  6. Save the changes and exit the SmartSketch Drawing Editor.

  7. 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 BopPipePort1_CA_JL_Custom.

See Also

Compound Labels
Select Label Rule Dialog Box
Create a Compound Label Using Label Rules