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.

for loop:<br />

“AxisX”, “AxisY”, “AxisZ” – X, Y, Z-coordinates of the normal to the ellipse plane;<br />

Variables<br />

“MaxDirectionX”, “MaxDirectionY”, “MaxDirectionZ” – X, Y, Z-coordinates of the<br />

ellipse major axis;<br />

“MinDirectionX”, “MinDirectionY”, “MinDirectionZ” – X, Y, Z-coordinates of the<br />

ellipse minor axis;<br />

“StartAngle” – the start angle;<br />

“EndAngle” – the end angle;<br />

“Perimeter” – loop perimeter.<br />

The parameter names are case-insensitive. If an incorrect element name or parameter name is input, then the<br />

function returns 0.<br />

Examples:<br />

Get the X-coordinate of a node named NODE_1 by calling the function GET () as follows,<br />

get ( “NODE_1”, “X” )<br />

Get the length of a graphic line named IMAGE_1 as follows,<br />

get ( “IMAGE_1”, “length” )<br />

Get the perimeter of the contour of the hatch Id 0x9000001 as follows,<br />

get ("0x9000001”, "PERIMETER”)<br />

Get the volume of the 3D body of a 3D fragment named 3D fragment_11 as follows,<br />

get ("3D fragment_11”, "volume”)<br />

To compute the total length of a chain of connected graphic lines, one could call the function GET() for each<br />

line and sum up the results. However, a more efficient way is to construct a <strong>2D</strong> path that follows along the<br />

chain of the graphic lines, and create a single graphic line from this path. In this case, the <strong>2D</strong> path is<br />

considered a spline. Then it is easy to get the length of this single graphic line.<br />

Using Functions DISTANCE() and MEASURE()<br />

Function distance() returns the value of distance between two <strong>2D</strong> or 3D elements.<br />

The function will be automatically substituted as expression for a variable if such variable is<br />

created when measuring distance between two <strong>2D</strong> or 3D elements in “PM: Measure Element or<br />

relation between two Elements” command.<br />

The calling sequence:<br />

distance ( “name1”, “name2” ), where<br />

name1 - name or ID of the first element,<br />

name2 - name or ID of the second element.<br />

Distance can be calculated for the following pairs of <strong>2D</strong> or 3D objects:<br />

<strong>2D</strong> elements – is the distance between a <strong>2D</strong> node and another <strong>2D</strong> node, construction line, graphic line or<br />

hatch (the order of selecting the measurable entities is not significant);<br />

3D objects – is the distance between two arbitrary 3D objects that are 3D construction entities (except for<br />

LCS), operations or such topological objects as an edge, loop, face, vertex.<br />

507

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

Saved successfully!

Ooh no, something went wrong!