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.

Variables<br />

One more additional relation can be measured for vertices, edges and faces, as well as for a pair “geometrical<br />

object – 3D node”:<br />

“GeomDistance” – is the distance between 3D points, 3D curves or surfaces corresponding to two<br />

respective 3D objects of the types: 3D node, vertex, edge, face.<br />

Input parameters for distance() and measure() functions can be specified using either small or capital letters<br />

analogous to get() function. If an incorrect element name or relation name is input, then the function returns<br />

0.<br />

Examples:<br />

Distance between two 3D nodes “3D Node_0” and “3D Node_1” can be measured with the following call of<br />

distance() function:<br />

distance ( “3D Node_0”, “3D Node_1” )<br />

Distance between image line with ID 0x3000014 and <strong>2D</strong> node named as “Node 1” will be returned by the<br />

following call:<br />

distance ( “0x3000014”, “Node 1” )<br />

Axial distance between cylinder axis resulted from extrusion operation named “Extrusion_1” and torus<br />

axis from “Rotation_2” operation can be calculated with the following call to measure() function:<br />

measure ("Extrusion_1", "Rotation_2", "AxisDistance")<br />

“PM: Measure Element or relation between two Elements” command is recommended<br />

for using distance() and measure() functions. Read more details in chapter “Measure Elements and<br />

Relations between Them”.<br />

Using Function CHECK ()<br />

This function searches files by name in certain directories. Specifically, the files are searched in the current<br />

directory, and in the directories specified in the command “SO: Set System Options” on the “Folders”<br />

tab.<br />

CHECK (“FILE NAME”, TYPE)<br />

The file name must be specified with the extension. The file type is defined as follows,<br />

0 – undefined;<br />

1 – T-<strong>FLEX</strong> <strong>CAD</strong> document;<br />

2 – font;<br />

3 – database;<br />

4 – pattern;<br />

5 – BOM.<br />

Using Functions SETV () and GETV ()<br />

Functions setv() and getv() allow the user to obtain and specify the values of real service characteristics of<br />

the T-<strong>FLEX</strong> <strong>CAD</strong> documents, such as the number of pages in the document, scale and font size, assigned for<br />

each page, coordinates of corners of the title block, volume of all bodies in the 3D scene (if the document<br />

contains a 3D model), etc. The values of these characteristics can be used, for example, for transferring data<br />

between the assembly drawing and the fragments.<br />

509

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

Saved successfully!

Ooh no, something went wrong!