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

548<br />

In the context menu, select the item “Parameters…”.<br />

The dialog for editing properties of the selected elements<br />

will appear in the properties window. In this dialog, clear<br />

the marks against all parameters except the “Level”<br />

parameter, and assign the latter a new value: flag_3 ==<br />

0? 0:-1. Click . The entered expression means: if the<br />

variable flag_3 is equal to 0, then the parameter “Level”<br />

will be assigned the value 0, otherwise - (-1).<br />

Thus, the dialog is created, and we can call it by the<br />

command “Parameters|Model”. Calling the command<br />

brings up this dialog box on the screen.<br />

When the flag “Display Title” is turned on, the<br />

parameters “Font size:” and “Text:” are present in the<br />

dialog. If the “Display Title” flag is off, the controls for<br />

defining the font size and the title text string are omitted<br />

in the dialog. Therefore, the created dialog box sample<br />

has parametric properties. One can create various<br />

parametric dialogs of more complex structure, using the<br />

same principle.<br />

Working with Multiple Dialogs<br />

As was mentioned above, multiple dialogs can be created within one model. Let's get back to the dialog<br />

instance with a preview pane and a picture. In addition to the existing dialog, let's create a dialog with<br />

controls for the title of the drawing. The file of this instance is “Sample dialog with tabs.GRB”.<br />

Call again the command “TR: Create Control”. Using the option , create a page for the second dialog.<br />

Rename it with the help of the command “Pages”, setting the name “Drawing title”.<br />

As it was mentioned, the variables “flag_3”, “size” and $text control the visibility, size and the contents of<br />

the drawing title text string, respectively. For each variable's control element, let's create the three respective<br />

“Group Box” elements, as shown on the diagram.<br />

As before, create a “Check Box” for switching<br />

the values of the variable flag_3.<br />

Place this control inside the first group, as shown on<br />

the diagram. In the window “Insert Variable”, select<br />

the variable flag_3. In the “Control Parameters”<br />

dialog box, assign the parameter “Caption” the string<br />

value “Display Drawing Title”. Set the parameter<br />

“On” to “0”, “Off” – “-1”.<br />

We will use the “Edit Box” control for modifying the<br />

title text, with the flag “Multiline EditBox” turned on.<br />

We need to put the explanation text “Title Text:” before the “Edit Box”. To do this, use a “Static Text”<br />

element.

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

Saved successfully!

Ooh no, something went wrong!