If the attribute tag values (in combinations or with prefixes or suffixes as described elsewhere) in the drawings exactly match the corresponding object names, modifying the attribute tag values is not necessary. Likewise for the tag type names. However, in some scenarios, the values and names might not exactly match. For example, they might contain fewer characters or they might contain spaces or other separator characters that are not included in the object names. In such a scenario, you can configure a tag filter to remove or replace the separator character with a different character or with no character.
The AutoCAD link supports tag value filters defined in the TagFilters setting, tag type filters defined in the TagTypes setting, and filters that can be applied to either tag values or tag types defined in the generic Filters setting.
The order of precedence in which the filters are applied is:
The available filters are:
The source and replacement characters must each be surrounded with double quotation marks. Each character pair must be included in braces [] with the Replace filter keyword.
For example:
TagFilters=[Replace " " ""] would remove the space characters from an attribute tag value such as Z827 1880 8A and return Z82718808A. The filter [Replace " " "-"] would replace the space characters from an attribute tag value such as Z827 1880 8A with hyphens and return Z827-1880-8A.
You may specify multiple Replace filters in the same TagFilters setting to accommodate different character pairs, for example, TagFilters=[Replace " " ""][Replace "-" ""] would remove both spaces and hyphens from the tag values.
[Cut <start> <length>]
Where <start> is the 0-based index of the character to start cutting and <length> is the number of characters to cut. The value of <start> must be less than the length of the property value or the filter will not be applied. If the value of <length> is -1, the remainder of the property value is excluded.
For example: :
TagPrefixProperty=[Cut 0 3]<PropertySetName.PropertyName> would cut the first three characters from the tag prefix value
Related tasks
Configuring object name prefixes and suffixes
Combining multiple attribute tags