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.

Databases<br />

argument_3 – the search option. Possible options are:<br />

0 – find the nearest value;<br />

-1 – find the nearest floor value;<br />

1 – find the nearest ceiling value.<br />

argument_4 – the parameter indicating the structure of the column subject to the search. It indicates how the<br />

values are ordered in the column. The value 0 means the entries are not ordered, forcing the search over all<br />

records in the database. The value 1 means the column is ordered ascending or descending. The search<br />

completes once the difference between the sought value and the value in the current column of the database<br />

is greater than in the previous one.<br />

The parameters argument_3 and argument_4 are optional. If those are not specified, the default values are<br />

used:<br />

argument_3 = 0; search for the nearest value;<br />

argument_4 = 0; the column is not ordered;<br />

Function VAL<br />

val ( record_number, database_field ), where<br />

record_number - is an arbitrary numerical expression yielding an integer.<br />

database_field - the reference to the field.<br />

Example:<br />

val ( 4, BASE.H )<br />

This call means: get the value from the record number 4 of the field H in the database BASE.<br />

Function FIND<br />

find ( database_field, condition_1, condition_2, ... )<br />

This function combines the previous two.<br />

The function returns the value of the specified field database_field from the record satisfying the<br />

conditions condition_1, condition_2.<br />

If such record is not found, the function<br />

signals the error “Incorrect record<br />

number”.To get the parameter values for the<br />

drawing of the bushing from the internal DB,<br />

use the function FIND (). To do this, enter<br />

the variable editor by using the command<br />

“V: Edit Variables” and define the<br />

expressions for the variables as shown on the<br />

right hand side diagram.<br />

Thus, we have created a parametric drawing<br />

of a bushing. The values of the drawing<br />

elements will be selected from<br />

the internal database BASE depending on the value of the inner bushing diameter d. In this way, you create a<br />

whole family of bushings for latches and mounting rods per GOST 12215-66 by creating a parametric<br />

drawing of the bushing and connecting it to the DB.<br />

527

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

Saved successfully!

Ooh no, something went wrong!