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

498<br />

ISFRAGMENT() Find the assembly hierarchy level of a fragment. For the current<br />

drawing, returns zero.<br />

MAX(N1,...,NN) Find the maximum value among the input set.<br />

MEASURE(“NAME1”,<br />

“NAME2”, “RELATION”)<br />

Get the value of requested relation RELATION between specified<br />

elements NAME1 and NAME2 (elements’ names or IDs can be<br />

used as input values).<br />

MIN(N1,...,NN) Find the minimum value among the input set.<br />

SETG/TSETG("NAME”,N) Set the value N of a numerical/string global variable named NAME.<br />

SETV(“NAME_Page”,N) or<br />

SETV(“NAME”,N)<br />

Set the value N of the global parameter named NAME for the page<br />

named “Page” of the current document. If the page name is not<br />

specified, the parameter value will be set for the first page of the<br />

document.<br />

STRLEN(“STR”) Find the number of characters in the string STR<br />

TFIND("string1",<br />

"string2")<br />

TGET()<br />

TGETV (“system<br />

variable”)<br />

TMGETV (“system<br />

variable”)<br />

TPART(“string”,N,N) Get a substring.<br />

TREPLACE("string1",<br />

"string2", "string3")<br />

Searches for the substring "string2" in the string "string1". Returns<br />

an integer value equal to the position number of the first substring<br />

occurrence, counted from 1. In the case of an error (the substring is<br />

not found) returns 0.<br />

This function allows the user to obtain textual properties of the<br />

elements: the name of the material of 3D operations, the values of<br />

text variables of the fragment.<br />

$text = tget(“0xD000001”,“$textvar”) – returns the string value<br />

from variable $textvar.<br />

$mater = tget(“Extrusion_0”,”Material”) – defines material for the<br />

operation “Extrusion _0”.<br />

Get the string value of a system variable or characteristics of the<br />

current drawing.<br />

The entire list of parameters whose values can be obtained with the<br />

help of the function tgetv, is given in the Attachment II of this<br />

chapter.<br />

Get the string value of a system variable of the assembly if the<br />

current drawing is inserted there as a fragment.<br />

This function works similar to the function TGETV.<br />

Replaces the substring "string2" by the substring "string3" in the<br />

string "string1". Returns a character string, which is the input string<br />

with the entry replaced.

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

Saved successfully!

Ooh no, something went wrong!