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

Attachment I. Rules for Writing Expressions. Functions for Working<br />

with Variables<br />

Expression<br />

Expressions determining the values of the variables can contain operands (real constants and variables, text<br />

constants and variables) and operations (a set of actions upon these variables). Expressions can also include<br />

functions.<br />

Members of Expressions<br />

Numerical constants.<br />

Numerical variables.<br />

String variables.<br />

Numerical constants may not contain spaces.<br />

Examples of correctly defined constants:<br />

2; 3.344; -2.34; 1.234e+5; 1.2344E-32; 0.0034;<br />

Examples of incorrectly defined constants:<br />

2,34 – the comma is not allowed as the decimal symbol.<br />

1.234 e+5 – inadmissible “space” symbol is used in a constant.<br />

Note for local language users: in the exponential number representation, use only the US ASCII “E” or “e”.<br />

String constants.<br />

A string constant is an arbitrary string entered in quotes:<br />

“This is a string constant!”<br />

Should a string constant include the quote symbol (“), it must be preceded by the backslash symbol (\).<br />

“This is another \”string\” constant!”<br />

The above is the way to enter a string constant, whose value is to read,<br />

This is another ”string” constant!<br />

To have the backslash symbol a part of a string constant, it must be duplicated.<br />

Example:<br />

“This \\is\\ t\w\o\!”<br />

The value reads,<br />

This \is\ two!<br />

Note that a single backslash is ignored throughout.<br />

Instructions (Operations) Used in Expressions<br />

The string members can only be subject to the operation<br />

concatenate, or, simply, addition of two strings ( + )<br />

“T-<strong>FLEX</strong>”+” <strong>CAD</strong>” = T-<strong>FLEX</strong> <strong>CAD</strong><br />

The numerical members are subject to common arithmetic operations, as<br />

addition ( + )<br />

493

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

Saved successfully!

Ooh no, something went wrong!