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

744<br />

Let's review in details the structure of employing macros in T-<strong>FLEX</strong> <strong>CAD</strong>.<br />

Macro<br />

(Macro1)<br />

. Class<br />

(Messages)<br />

PROJECT<br />

(File T-<strong>FLEX</strong> <strong>CAD</strong> “Example.grb”)<br />

Module 1 Module 2 Module 3<br />

Macro<br />

(Macro1)<br />

Namespace<br />

(Namespace 1)<br />

Macro<br />

(Macro1)<br />

. Class<br />

(Messages)<br />

Macro<br />

(Macro1)<br />

Namespace<br />

(Namespace 2)<br />

. Class<br />

(Messages)<br />

Macro<br />

(Macro1)<br />

Macro<br />

(Macro1)<br />

The above scheme illustrates a project from the file «Example.grb». Three modules were created in this<br />

project. «Module2» and «Module3» use the namespaces «Namespace1» and «Namespace2», respectively.<br />

All three modules use the same class «Messages». Two respective macros are created in each module. In this<br />

example, one of the macros in each module use the same name «Macro1». In reality, those are completely<br />

different macros, yet having the same names. Such a macros naming structure can be used in the cases when<br />

macros serve for similar purposes.<br />

Now, let's review macros representation in T-<strong>FLEX</strong> <strong>CAD</strong> environment. More details on handling macro<br />

editor windows will be provided below. At this point, let's limit ourselves to reviewing just the structure of<br />

macros representation.<br />

As shown on the figure below, a hierarchical structure of nested folders appears upon opening the project<br />

«Example», that represent namespaces (the folders with the icon ) and classes (the folders with the icon<br />

), with their respective macros enclosed within.

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

Saved successfully!

Ooh no, something went wrong!