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

All variables, except flag_21 and flag_22, are external.<br />

Predefined lists of values are created for the variables height,<br />

width and width_1, and dim_mode. Note that the variable<br />

dim_mode uses a list of a special type: each numerical symbol is<br />

separated by “;” from the string bound to this numerical value.<br />

How to use such a list is described below. The introduced<br />

variables allow getting different versions of the original drawing:<br />

modifying the part size and the size of the hole, displaying axes<br />

and various dimensions. You can also modify the font size of the<br />

title, or hide it altogether.<br />

Let's consider various choices of the dialogs for this example. Let's begin with creating a simple dialog for<br />

this model, as shown on the diagram. The respective library file is “Sample single dialog.GRB”.<br />

The dialog being created allows modifying the part size and the size of the conic hole and showing/hiding<br />

dimension and axes display.<br />

Call the command “TR: Create Control”. Let’s create the dialog page:<br />

Create Dialog Page<br />

By default, the newly created page is assigned the<br />

type “Controls”, with the recommended sizes set<br />

appropriately. This page is also automatically added<br />

and check marked in the list of pages displayed by the<br />

command "Customize|Status" (the tab<br />

“Preferences”), while the parameter “Marked<br />

variable editor” is switched into the mode “Pages”.<br />

Name the new page “Part parameters”.<br />

Grid snapping is turned on on this page by default.<br />

You can also turn on snapping by the absolute<br />

coordinates:<br />

Set absolute coordinates<br />

When using construction lines and nodes, you can use snapping to <strong>2D</strong> nodes:<br />

Set relation with Node<br />

If necessary, you can define default parameters for all newly created control elements:<br />

Edit Control Parameters<br />

Calling the option brings up the “Control Parameters” dialog box. The latter provides the full set of<br />

parameters for a control element. Thus, in our example, the parameter “Editable” can be turned off for<br />

“Combo Box”-type controls.<br />

The variables of the model, whose values will be controlled by the dialog being created, can be divided into<br />

several groups:<br />

Variables that drive the part sizes (height, length, width);<br />

541

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

Saved successfully!

Ooh no, something went wrong!