Question:
How can configure dimensions with editable PREFIX and SUFFIX?
Answer:
The dimension feature class has to have text fields PREFIX and SUFFIX (or also PRE
and SUF).
In the dimension style Excel file for the styles in row TEXT following has to be defined:
- Field DISPLAY-MODE (column D): Expression
- Field EXPRESSION (column G): Please enter a VBScript function which evaluates
values of PREFIX and SUFFIX (or PRE and SUF).
Example:
Function FindLabel ( [PREFIX] , [SUFFIX] , [USECUSTOMLENGTH] ,
[DIMLENGTH] , [CUSTOMLENGTH] )
If not IsNull( [PREFIX] ) Then PREFIX=[PREFIX] & " " End If
If not IsNull( [SUFFIX] ) Then SUFFIX= " " & [SUFFIX] End If
If [USECUSTOMLENGTH] = 0 Then
FindLabel = PREFIX & FormatNumber( [DIMLENGTH] ,2) & SUFFIX
else
FindLabel = PREFIX & FormatNumber( [CUSTOMLENGTH] ,2) & SUFFIX
End If
End Function
- (Field ALIGN_MODE (column H): "Don't align"
- Field EXPRESSION_PARSER (column K): VBScript
- Field COMPLEXITY_OF_EXPRESSION (column L): Expression is Complex
The content of these fields is automatically used for the labels of the dimensions.
For dimensions using this type of configuration, the prefix and suffix text values can
be modified with the UT function Change Dimension Text. The related values of
the dimension feature are updated, too.
Comments
0 comments
Please sign in to leave a comment.