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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

526<br />

Upon completing this task, you should get the following result :<br />

Thus, we created a database inside the drawing, that is similar to the table in the guide. Now, we can select<br />

the necessary entries from this table using the variable editor. The data requirements are determined by the<br />

driving parameter (in our case, the inner diameter). By regenerating the model, we will get the drawing of a<br />

bushing of the required size .<br />

Functions for Getting Values from Internal Databases<br />

The syntax of referencing a database field is as follows:<br />

.<br />

An entry BASE.WEIGHT refers to the field WEIGHT in the database BASE.<br />

There are four functions for accessing values in the internal databases:<br />

REC - gets the number of the record satisfying the given condition;<br />

FREC – gets the number of the record whose contents matches best the specified value;<br />

VAL - gets the value of the field from the record with the specified number;<br />

FIND - gets the value of the field from the record satisfying the given condition.<br />

Function REC<br />

rec ( condition ), where<br />

condition is a Boolean expression assuming the values true or false. The expression can contain members<br />

that are themselves calls to the fields of the database.<br />

Example:<br />

rec ( BASE.DD == 4 )<br />

This call means: find the record number in the internal database BASE, satisfying the following condition:<br />

the value of the field DD in this record should be equal to 4.<br />

Function FREC<br />

frec ( argument_1, argument_2, argument_3, argument_4 ), where<br />

argument_1 – is the column in the database that is subject to the search. Must have Real or Integer type;<br />

argument_2 – the sought value;

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

Saved successfully!

Ooh no, something went wrong!