The basic syntax for property text with format codes to modify the resulting value is:
%{PropertyText/xx/xx/xx}
A property text string begins with %{
and ends with }
Property text is specified by %XX
, where %XX
is defined in property text codes.
You can modify the resulting value of a property text string by appending a format code, /xx
, as defined in format control codes to modify property text.
You can specify multiple formatting modifiers for a single property text value:
%{PropText/xx/xx/xx}
.
Example:
The following example strings together three modifiers--precision, stacked tolerance, dual units--of the hole size value:
%DI %{%HS/@2/st+.001^-.002/du}
This displays the diameter symbol with [(Hole Size /2 decimal places) (stacked tolerances +.001,-.002)] and dual units applied to all.
White space in property text is ignored.
A back slash \ specifies do not evaluate the next character.
Format codes /xx
can be applied only to property text that resolves to a single united value.
Example:
A format code cannot be applied to this hole callout, because %HC
is expanded to more than one united value:
%HC=%DI%HS%ZH%RTC'BORE%DI%BS-%BDDEEP
However, you can modify the string with brackets to apply a format code to an individual property:
%HC=%DI{%HS/DU}%ZH%RTC'BORE%DI%BS-%BDDEEP