Format codes to modify property text output

You can modify the resulting value of a property text string by appending a format code, /xx, defined in the table below.

%{PropertyText/xx/xx/xx}

In addition, the /ST format code may be used to specify superscript and subscript formatting for plain text.

Format codes

Syntax

Description

Example input

Example output

/NU

Note:

Not /nu

No units

%{Density/NU|G}

2712.000

/@n

Precision

Where integer n specifies precision format for a property text value that starts with a number.

%{%HS/@2}

12,12

/du

Dual units

Applies only to fields that evaluate to a single united value.

Secondary unit displays ( ) or [ ] based on dimension style.

Dual units only
%DI%{%HS/DU}

/@

Date and time

Some year, month, day format options are:

YYYY→2010

yy→10

MMMM→March

MM→03

dddd→Monday

ddd→Mon

dd→date (1–31)

%{Created/@yyyy MMMM}

For a complete list of format options, see Date and time format of property text.

2010 July

/STSuperscript^Subscript

Example:

/ST used to format plain text.

Applies Superscript and Subscript format to plain text or numbers typed in either or both of these fields.

Plain numbers
%{/ST1^2}

Plain text
%{/STYes^No}

/ST±upper^±lower

/st±.001^±.002

Text height is defined by the active dimension style.

Example:

/ST used to define stack tolerance value.

Stack tolerance, upper and/or lower.

The ^ separates upper tolerance±.001 from lower tolerance ±.002.

When ^ is not specified→upper tolerance only.

Upper tolerance only
%[%HS/ST+.02}

Lower tolerance only
%{%HS/ST^.02}

Upper and lower tolerance
%{%HS/ST+.02^-.03}

/LT±upper^±lower

/lt±.001^±.002

Text height is defined by the active dimension style.

Limit tolerance, upper and/or lower.

The ^ separates the upper limit ±.001 from the lower limit ±.002.

Lower limit only
%DI %{%HS/LT^-.25}. Nominal HS=5.28

Upper and lower limit
%DI %{%HS/LT+.05^+.01} Nominal HS=12.12

Limit tolerance with precision
%DI %{%HS/@4/LT+.05^+.01}. Nominal HS=12.123245

/TCn

where n designates a predefined capitalization format.

Property text string format.

TC1→UPPERCASE

TC2→lowercase

TC3→Sentence case

TC4→Title Case

UPPERCASE

%{File name/TC1}

FILE NAME

lowercase

%{File name/TC2}

file name

Sentence case

%{File name/TC3}

File name

Title Case

%{File name/TC4}

File Name

/cp

Custom property

Fetches the current value from the Custom Properties page of the File Properties dialog box. This value overrides any previously defined value in Solid Edge.

%{Title/cp}

Title defined in Custom Properties

What are you looking for?
How do I
Learn more about
Look up more details