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.

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

example, for creating a simplified parametric drawing on the page of the dialog box. In this way, the user can<br />

evaluate the changes made to the model parameters by this drawing.<br />

Dialog pages<br />

All control elements of a dialog should be located on one page. Dialog elements can be placed on a drawing<br />

page or on an additional manually created page. However, we recommend placing control elements on a<br />

separate page of “Controls” type, created automatically. Such page is assigned “Custom” format with the<br />

paper height and width recommended for dialog boxes, as well as optimum font size and grid step for<br />

dialogs.<br />

The dialog box size is defined by the value of the parameter "Paper size" in the command<br />

"Customize|Status" (the tab “General”), defined for the dialog page. The size of the dialog box can be<br />

modified via the parameters of the mentioned command or by using the command "Customize|Page<br />

Size".<br />

For automatically created “Controls”-type pages, grid display is turned on for easy positioning of control<br />

elements. To turn off the grid or to change its step, use the command “Customize|Grid”. If necessary, you<br />

can turn on snapping to existing <strong>2D</strong> nodes or use the absolute coordinates.<br />

The dialog box can be used in the future for editing the model external variables. Therefore, the<br />

automatically created dialog page is added for convenience to the list of pages on the tab “Preferences” of<br />

the command "Customize|Status". You need to switch the parameter “Marked variable editor” to the<br />

option “Pages”, and check mark the created dialog page in the list of pages.<br />

The page name will be used as the dialog box title. The page name can be modified using the command<br />

"Customize|Pages…" or with the help of the command “Rename” found in the context menu for the tab<br />

of the given page.<br />

Multipage dialogs<br />

A T-<strong>FLEX</strong> <strong>CAD</strong> document may contain an arbitrary number of dialog pages. You can build separate dialogs<br />

for various groups of parameters and specify different scenarios of the dialogs interaction. The two main<br />

scenarios of the dialogs interaction are as follows:<br />

Complex multi-tab dialog box. Separate dialog boxes are joined into a complex one with tabs, each tab<br />

corresponding to a particular contributing dialog box;<br />

Main-subordinate dialog scheme. In this scheme, one of the dialogs is rendered main and appears upon<br />

calling the command “Parameters|Model”, while the rest of the dialog boxes are called, if necessary, via<br />

the controls of the main dialog.<br />

The combination of the two schemes is also possible.<br />

When creating a dialog box with tabs, keep in mind that the pages of the dialogs being joined must have<br />

same size. Otherwise, all pages and their respective elements will be forced to scaling to the size of the first<br />

one.<br />

The second scheme that relies on using several dialog boxes allows different page sizes.<br />

General principles of creating control elements<br />

To create a dialog box use the command “Create Control”. It can be called by one of the following means:<br />

Keyboard Textual Menu Icon<br />

“Draw|Control”<br />

537

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

Saved successfully!

Ooh no, something went wrong!