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.

Control Elements. Creating User Defined Dialog Boxes<br />

As was mentioned, this option allows creating a button<br />

control on a dialog page and define a sequence of<br />

actions performed upon pressing the button.<br />

The first step of button creation is defining its size and<br />

position in the dialog box. Next, in the “Control<br />

Parameters” dialog box, define the button parameters.<br />

Then, the “Actions” window appears. Here we need to<br />

specify the action (or a sequence of actions) to be<br />

performed upon pressing this button.<br />

Adding actions to the list is done as follows. In the<br />

pulldown list of actions select the desired one and<br />

press [Add…] button. Then, depending on the selected<br />

choice, an appropriate dialog box will appear for<br />

selecting a page or variable and the value to be<br />

assigned to it. After that, the action is added to the list<br />

of actions of the button being created.<br />

To make changes in the specified list of actions in the<br />

“Actions” window, use the following graphic buttons:<br />

To delete an action - select the desired line in the list<br />

of actions and press the button [Delete];<br />

To modify an action - select the desired line in the list of actions and press the button [Properties…].<br />

A dialog box will appear for selecting the page or variable and for specifying its value;<br />

To change the order of actions (which is the same as their order in the list) - select the necessary line in the<br />

list of actions and move it, using the buttons [Up] or [Down].<br />

When pressing the button, the actions of performed in the order in which they were defined.<br />

Therefore, the order of actions is defined according to the purpose of the button creation. In<br />

addition, keep in mind that if the action sequence involves calling a dialog box, the remaining<br />

actions will be performed only after closing this dialog box by pressing the [OK] button. If the<br />

dialog call ended in pressing the button [Cancel], the remaining actions are ignored.<br />

For the current example, define the position of the button on the dialog page as shown on the diagram. In the<br />

“Actions” window, define the following sequence of actions:<br />

1. Assign the variable: $text=“Drawing Title”;<br />

2. Show the “Drawing title” dialog.<br />

After creating the button, call the command “Parameters|Model”. The “Part parameters” dialog box will<br />

appear. Press the graphic button [Text…]. The “Drawing title” dialog window opens. The title text changes<br />

to “Drawing Title”. To return to the main dialog, just press the [OK] button.<br />

551

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

Saved successfully!

Ooh no, something went wrong!