30.07.2013 Views

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

T-FLEX Parametric CAD. Fundamentals. 2D Design

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />

122<br />

You can use variables to define drawing parameters that are defined in the “ST: Set Model Status”<br />

command, such as scale, paper size, font size, etc. Variables can also be used for defining the system<br />

visibility levels of the elements set in the command “SH: Set Levels”.<br />

Assigning variables to parameters<br />

• When assigning a variable to a numeric parameter, enter the variable name or expression without any<br />

special symbols. Examples: A or A+B<br />

• When assigning a variable to a string parameter, enter the variable name or expression in braces.<br />

Examples: {$NAME} or {A+B}<br />

• When assigning string parameters in braces one can enter either the real variables or textual variables.<br />

If a new variable name was entered when assigning a parameter, the value of this variable must be set after<br />

leaving the menu.<br />

When a variable is introduced, the format of its value representation can be specified along. Use the<br />

following syntax for typing variable values:<br />

{} or {,}<br />

The following example demonstrates use of formatted variable representation.<br />

Today {”%lg”,DAY}, {”%s”,$MONTH}, {YEAR}<br />

Note that the textual variable $MONTH begins with the ‘$’ character, as this is the prefix for all textual<br />

variables.<br />

The format structure, used for the T-<strong>FLEX</strong> variables, follows the syntax of the input/output formats<br />

in “C” programming language.<br />

Using formats will help you control the appearance of the variable value on screen. For example, formats can<br />

control the number of displayed decimal digits or justification of the displayed value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!