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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Additionally, a macro can be launched by clicking a<br />

«Button» control created by the «Controls» command in<br />

the T-<strong>FLEX</strong> <strong>CAD</strong> document. That particular control can<br />

be added the «Run macro» action. For more details on<br />

the steps of creating a button control, refer to the chapter<br />

«Control elements. Creating custom dialogs».<br />

The figure below depicts the result of running the macro<br />

that creates a construction circle and a text string<br />

wrapped on the circle. The code of this macro was<br />

shown above as part of the module's code window<br />

description.<br />

Creating Macros with Screen Forms<br />

Macros<br />

In certain situations, the user needs to be able to input certain element parameters in the dialog while running<br />

a macro. To realize this capability, the macro editor supports creation of screen forms that can contain<br />

controls. Follows below is the overview of the macro editor tools supporting creation of macros with screen<br />

forms.<br />

«Toolbox» Window<br />

The «Toolbox» window can be accessed from the macro editor<br />

textual menu as: View|Tools.<br />

The «Toolbox» window contains a set of control elements that can<br />

be placed on a form. The elements appear in this window only when<br />

the form is active. Otherwise, the window will be empty.<br />

749

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

Saved successfully!

Ooh no, something went wrong!