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.

<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />

752<br />

At the top of the window there are two lists: the first one displaying all objects on the form, while the second<br />

one − the methods related to the selected object from the first list. Methods are the actions or tasks performed<br />

by the given object (the control element on the form).<br />

The code window provides control over the number of displayed procedures. For this purpose, two buttons<br />

are provided in the upper right corner of the window:<br />

– View all mode;<br />

– View handler mode.<br />

To add a new procedure, select an element in the list of objects, and then select the desired method for that<br />

element in the list of methods. By doing so, an appropriate procedure will be added in the code window.<br />

Example of Macro with Screen Form<br />

Let’s review an example of a macro written in the Visual Basic programming language. Executing the macro<br />

creates a segment between two <strong>2D</strong> nodes. Coordinates of those nodes are entered via a dialog.<br />

Initially, a form «FormLine» was created in the Project «CreateLine.grb», and then controls were placed on<br />

it, which will be used for defining <strong>2D</strong> nodes coordinates. Another control element was added to the form – a<br />

button, clicking which would launch the function creating the <strong>2D</strong> nodes and the segment between them.

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

Saved successfully!

Ooh no, something went wrong!