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

748<br />

Upon a successful project compilation, the macro will be added into T-<strong>FLEX</strong> <strong>CAD</strong> «Macros» window and<br />

can be executed thereafter.<br />

Running Macros<br />

There are several ways of launching a macro for execution.<br />

First of all, a macro can be run directly from the macro editor by the command:<br />

Keyboard Textual Menu Icon<br />

«Run Default Method»<br />

Since a module can contain multiple macros (procedures), you need to tell the system which procedure to<br />

run. To do this, you need to select the default method (macro) in the command «Project Properties».<br />

If the method was not specified initially, the «Choose Macro» dialog appears, letting you to select the<br />

method to be run by default. In this dialog, you can select any desired method from the list provided for the<br />

current project, or click the button [Set Manually] and type in the method manually in the coming up<br />

«Set Macro» dialog: defining the namespace, the class and the name of the procedure to be run.<br />

The selected method will be launched. If the module’s code was modified before launching the method, then,<br />

upon activating the command «Run default method», the system will prompt you for recompiling the project.<br />

As it was mentioned earlier, a macro can be launched for execution from the T-<strong>FLEX</strong> <strong>CAD</strong> «Macros»<br />

window as well by double-clicking the selected macro.

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

Saved successfully!

Ooh no, something went wrong!