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.

Variables<br />

The angle arguments of trigonometric functions are input in degrees, except for the functions whose names<br />

begin with “R”.<br />

T-<strong>FLEX</strong> <strong>CAD</strong> Functions<br />

ATOF(“10.5”) Convert the string “10.5” to the real number 10.5<br />

ATOT(1.5,0.01,1,0)LTOT(1<br />

.5,0.01,1,0) SATOT(1.5)<br />

SLTOT(1.5)<br />

CHECK(“file name”,<br />

type)<br />

DISTANCE (“NAME1”,<br />

“NAME2”)<br />

Convert the real number 1.5 to a string per the format specified by<br />

the rest three arguments<br />

Find a file in the specified folders.<br />

Get the distance between the entities specified by their names or<br />

Ids.<br />

ERROR(“STRING”) Display a user-defined message “STRING” on the screen<br />

FTOA(10.5) Convert the real number 10.5 to the string “10.5”.<br />

FIXNODENAME(n)<br />

Get the name of the fragment’s node used for inserting the current<br />

document as a fragment by fixing points.<br />

This function is helpful for creating the libraries of logical and<br />

algorithmic schemes. It helps to orient direction of connecting<br />

arrow between elements.<br />

Input parameter: the number of the fragment’s fixing point.<br />

GET(“STR”,“P”)<br />

Get the real value of the parameter P of the system element named<br />

STR. Instead of element’s name it is possible to specify its<br />

identifier (ID).<br />

The entire list of parameters whose values can be obtained with the<br />

help of the function get, can be found in the Attachment II of this<br />

chapter.<br />

GETG/TGETG("NAME”,N) Get the value of a numerical/string global variable named NAME.<br />

GETV(“NAME”,N) or<br />

GETV(“NAME_Page”,N)<br />

Get the value of the service parameter of the document named<br />

NAME. N – is a value that will be returned by the function if it does<br />

not find the indicated parameter.<br />

Certain parameters are defined separately for each <strong>2D</strong> page of the<br />

document. In this case, the ending “_Page” is added to the name of<br />

the parameter, where “Page” – is a name of desired page of the<br />

current document. If the page name is not specified, the parameter<br />

value will be returned for the first page.<br />

The entire list of parameters whose values can be obtained with the<br />

help of the function getv can be found in the Attachment II of this<br />

chapter.<br />

GRAPH(“Graph_name”,X) Get the value of the function F(x), corresponding to the X argument<br />

value, for the graph named “Graph_name”.<br />

497

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

Saved successfully!

Ooh no, something went wrong!