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 />

defining the variables, many similar, bulky expressions, differing only in separate arguments, are used in the<br />

expression, it is possible to define user's own function, a call to which can replace the expressions. User's<br />

functions are defined with the help of variables of a special kind – variables-functions.<br />

Variable-function represents itself the definition of the user's function. The expression for the variablefunction<br />

is composed according to the same rules as those for the standard variable. The entry of the<br />

arguments of the function into the expression is denoted in the following way (the number of the arguments<br />

is not limited):<br />

#1 – the first argument,<br />

#2 – and second argument and so on.<br />

The function defined in such way can be used in the variables editor upon specifying the values of other<br />

variables. Upon calling this function, the names of the variables and numeric expressions serve as the<br />

arguments. The number of actual arguments must be equal or more than the number of formal arguments.<br />

For example, if the variable-function was defined in the following way:<br />

FUNC=(#1+#2)*10,<br />

the call FUNC (L, 20, 30) will not be a mistake.<br />

In the list of the variables of the current document, the empty brackets “()” are automatically<br />

added to the name of the variable-function.<br />

The list of variable's values<br />

For any T-<strong>FLEX</strong> <strong>CAD</strong> variable it is possible to define a list of values. To be more precise – a list of<br />

expressions since the list for the variable can include any values, not necessarily the constants. The list of<br />

various expressions can be defined even for a variable-function. After that, the value of any variable, more<br />

precisely, of any expression, determining this value, can be selected from the created list.<br />

The list is created as a set of lines, containing required constants or expressions. Moreover, the list can be<br />

created on the basis of already existing file, internal database, the list of materials in the 3D version or the<br />

calender two last items are available only for text variables.<br />

The list defined for the variable will appear in all places in which the value of the given variables is specified<br />

(in the variables editor, in the command “М: Edit model parameters”, upon assigning the variables of a<br />

fragment). The field for the entry of the values of such variable will include the graphic button which<br />

enables to call the list of values. To access the list of values, it is enough to point at this button with the<br />

cursor of the mouse and press . As a result, the list will pop up on the screen, and the new value<br />

(expression) can be selected from the list.<br />

468

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

Saved successfully!

Ooh no, something went wrong!