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

«Projects» Window<br />

The window can be accessed via the text menu of the macro editor: View|Projects.<br />

The T-<strong>FLEX</strong> <strong>CAD</strong> file appears in the macro editor as a Project. Each Project can include a set of Modules,<br />

Forms and References.<br />

A so-called modular programming approach is used when writing macros in T-<strong>FLEX</strong> <strong>CAD</strong> environment.<br />

Modular programming is the way of structuring a program as a union of small independent blocks, called<br />

modules, whose structure and behavior are governed by certain rules. Module is a separately compilable<br />

program unit which includes various components (types, constants, variables, namespaces, classes,<br />

procedures and functions).<br />

From the program source perspective, a macro is a procedure. Procedure is a part of a program devised for<br />

performing a certain specific task.<br />

Form is the dialog box of a macro, within which control elements can be placed (such as text, buttons, text<br />

input boxes, radio groups etc.), used for operating the macro. More details on working with this window will<br />

be revealed in the topic «Creating macros with screen forms» of this chapter.<br />

742

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

Saved successfully!

Ooh no, something went wrong!