Tagging Classes in SVG Files
- Last UpdatedOct 24, 2024
- 2 minute read
When you are exporting drawings, you can specify how the tag ID of class must appear in the SVG file through the SVG tab in the Class Mappings page. The tag ID for the class is retrieved from the mapping specified here and the same is displayed on the SVG file when the class is selected.
Note: Tagging is supported only for those classes that can be selected in the SVG file. Accordingly, the settings in the SVG tab are applicable to only those element types.
To map the tag ID of a class:
-
Click the Drawings tab.
-
Select the required class in the Current Mapping list.
-
On the SVG tab, do one of the following:

-
If you want to specify the mapping value for the tag ID directly, select the Constant option and enter a value in the Text box. The specified value is used as the tag ID of the class.
Note: You can add the value to the list by clicking the Add icon. Click the Delete icon to delete the selected value from the list. When you delete a value from the list, the mapping for the tag ID is also deleted.
-
If you want to derive the tag ID from the value of an attribute, select the From Attribute option and select an attribute from the Attribute name list. The attribute value is used as the tag ID for the class.
-
If you want to derive the tag ID from a PML expression, select the From PML option and enter a PML expression in the PML Expression box. The result of the PML expression is used as the tag ID for the class.
Note: The tag IDs for the classes without a mapping are not displayed in the SVG file.
-