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

Syntax of Functions<br />

510<br />

setv("NAME",N)<br />

This function sets the numeric value N for the parameter of the current document NAME.<br />

getv ("NAME",Err)<br />

This function returns the value of the parameter NAME of the current drawing. Err – the value which will be<br />

returned by this function if the indicated parameter is not found.<br />

In multipage document certain characteristics (scale, font size, etc.) are set independently for each page of<br />

the document. By default, the functions get() and set() deal with the characteristics of the first page of the<br />

document.<br />

To address characteristics of other pages it is required to add “_Page” to the end of the parameter’s name,<br />

where “Page” – the name of the desired page.<br />

List of Characteristics of the T-<strong>FLEX</strong> <strong>CAD</strong> Document Processed by Function GETV()<br />

Characteristics of <strong>2D</strong> pages of Document:<br />

PAGES – total number of pages in current document;<br />

SCALE – scale of current drawing;<br />

XL – coordinate X of the left border of the drawing;<br />

XH – coordinate X of the right border of the drawing;<br />

YL – coordinate Y of the lower border of the drawing;<br />

YH – coordinate Y of the upper border of the drawing;<br />

FSIZE – font size of the drawing.<br />

LTHICK – thickness of main lines in the drawing.<br />

TLTHICK - thickness of thin lines in the document.<br />

Characteristics of 3D scene of Document:<br />

MASS – mass of all bodies in the 3D scene of the current document;<br />

VOLUME – volume of all bodies in 3D scene of the current document;<br />

AREA – surface area of all bodies in 3D scene of the current document;<br />

EXPLODE – state of exploded view mode for the fragments of 3D model of the current document (0 –<br />

exploded view mode is turned off, 1 – turned on).<br />

Characteristics of fragments calculated from assembly:<br />

_XL – coordinate X of the left border of the assembly drawing when using the current document as a<br />

fragment;<br />

_XH – coordinate X of the right border of the assembly drawing when using the current drawing as a<br />

fragment;<br />

_YL – coordinate Y of the lower border of the assembly drawing when using the current drawing as a<br />

fragment;<br />

_YH – coordinate Y of the upper border of the assembly drawing when using the current drawing as a<br />

fragment;<br />

APAGES - returns the total number of pages in the document containing a given fragment;<br />

APAGE - returns the number of the page which contains a given fragment;

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

Saved successfully!

Ooh no, something went wrong!