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.

Subscript and Superscript Text. Use of Variables in Text<br />

Text<br />

The string text allows insertion of textual and numerical variables, subscripts and superscripts, as well as<br />

special symbols. These symbols are displayed using the same font as the main text. You can use the context<br />

menu commands for inserting, while the pointer is within the text editor or the text contents input pane in the<br />

parameters dialog.<br />

For example, to insert a variable in a text, you can use the context menu item “Insert Variable…” or use the<br />

function key . The standard dialog box “Insert Variable” will appear on the screen. Upon selecting a<br />

variable, the reference to the variable will be inserted in the text contents in the following format:<br />

{}. In the drawing, the reference to the variable will be replaced by its value.<br />

The string text also allows “manual” insertion of variables and various symbols in the text. To insert variable<br />

values in a text, use the following syntax:<br />

{} or {,}<br />

Example of using variables:<br />

Create the text with the following contents:<br />

Diameter of cylinder is {D} millimeters<br />

Assigning the variable “D” the value “10” will make the text appear on the drawing as shown on the<br />

diagram.<br />

The following is an example of using formatted representation of variables:<br />

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

The format structure used by T-<strong>FLEX</strong> variables corresponds to the syntax of the input/output formats of the<br />

“C” programming language. Use of formats helps you control the appearance of the variable as displayed on<br />

the screen (for example, the number of decimal digits, or justification of the output value).<br />

To insert a subscript or superscript at any position in a line of text, surround the<br />

intended block in double brackets:<br />

Text_1 [[String_1^String_2]] Text_2<br />

Using the symbol “~” instead of “^”, divides the String_1 and String_2 by<br />

a horizontal line:<br />

Text_1 [[String_1~String_2]] Text_2<br />

Using angular brackets instead of square ones makes String_1 and String_2<br />

displayed in a two times smaller font than the rest of the text:<br />

Text_1 Text_2<br />

String text can be framed by prefixing it with the symbol “~”. This feature affects<br />

the whole text.<br />

Special symbols and underlining can be used in text.<br />

345

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

Saved successfully!

Ooh no, something went wrong!