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
-
Browse to the [Reference Data Folder]\SharedContent\Drawings\Catalog\Labels\Templates folder, and create a new .xml label template called Instrument Name_Elevation.
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.
-
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>
-
Save the changes, and then close the file.
Create a new .sym file
-
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.
-
Open Instrument Elevation_Equipment_Name.sym in the SmartSketch Drawing Editor, and delete any existing symbols or graphics.
-
Open Symbol Explorer , and drag Instrument Elevation_Equipment_Name.sym and SP3DCoordinate_CA_JL.sym to the active sheet.
-
Right-click the Instrument Elevation_Equipment_Name symbol, and select Properties.
The Symbol Properties dialog box displays.
-
On the User tab, type EmbeddedLabel in the Name box, and then type Instrument Elevation_Equipment_Name in the Value box.
-
Click Add, and then click OK.
The Text Box Properties dialog box closes.
-
Right-click the SP3DCoordinate_JA_CL symbol, and then select Properties.
The Symbol Properties dialog box displays.
-
On the User tab, type EmbeddedLabel in the Name box.
-
Type SP3DCoordinate_JA_CL in the Value box. Click Add, and then click OK.
The Symbol Properties dialog box closes.
-
Save the changes, and then exit the SmartSketch Drawing Editor.
-
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.
1 - Name component |