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.

Variables<br />

BOMPAGES – returns the total number of pages in the BOM of the document containing a given<br />

fragment;<br />

BOMPAGE – returns the number of the page of the BOM which contains a given fragment.<br />

The values of these characteristics are calculated for the document-fragment inside the assembly.<br />

For example, if in the document of the fragment the user created the variable the value of which is<br />

specified by the expression (“apage”, -1), then inside the document of the fragment the value of this<br />

variable will be equal to -1, and inside аn assembly document – to the number of the page of the<br />

document which contains a given fragment.<br />

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

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

SCALE – scale of current drawing;<br />

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

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

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

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

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

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

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

Characteristics of 3D scene of 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 />

Examples of Using Functions<br />

getv("SCALE",0) – returns the value of the scale specified for the first page of the current document;<br />

getv("SCALE_Page 2",-1) – returns the value of the scale specified for the page of the current document<br />

with the name “Page 2”. If this page is absent in the document, the function returns the value “-1”;<br />

getv("mass",0) – returns the value of mass of all bodies in the 3D scene of the current document. If the<br />

3D scene is empty, the function returns the value “0”;<br />

setv("SCALE_Front_0",2) – this functions sets the value of the scale equal to 2 for the page “Front_0”<br />

(page of workplane “Front view”);<br />

setv("explode",1) – this function activates the exploded view mode for the 3D model in the current<br />

document.<br />

Using Function TGETV ()<br />

Function tgetv() allows the user to obtain the values of system’s text characteristics of the current T-<br />

<strong>FLEX</strong> <strong>CAD</strong> document.<br />

Syntax of functions:<br />

tgetv ("NAME"), where NAME – the name of text parameter of the system or the current document.<br />

Any of the following characteristics can be used as parameter of this function:<br />

USERNAME – Name of current user of the system;<br />

YEAR – Current year;<br />

511

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

Saved successfully!

Ooh no, something went wrong!