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.

Creating Dialog Box<br />

At this step, we will compose the dialog box that will be used for<br />

inserting the current drawing as a fragment. Each time when<br />

assembling a drawing (model), the user will be getting a dialog<br />

box containing standard Windows elements (input boxes, pulldown<br />

lists, etc.), helping easily and quickly defining the<br />

parameters of the fragment being assembled.<br />

Creating such a dialog box is relatively simple. First, create a new<br />

page to hold the control elements. To do this, lunch the command<br />

“Draw|Control” and select the automenu option “Create<br />

Dialog Page”.<br />

Some of the controls (“Static Text”, “Group Box”) do not depend<br />

on variables. When creating such elements, you define their<br />

position and then enter their name. Such elements help creating a<br />

clear dialog structure with necessary descriptions.<br />

Other elements depend on variables. At creation, besides defining<br />

their position, you need to specify the variable related to such<br />

element. To input the parameters directly, you can use the items<br />

“Edit Box” and “Combo Box”. The “Combo Box” is used when<br />

the variable has a predefined list of values. In our example, all<br />

variables that we input have lists of values; therefore, “Combo<br />

Box” should be used for them.<br />

Some variable can have only two determined values. To work<br />

with these variables, it is convenient to use a “Yes/No” switch<br />

element. When creating such an element, you define the variable<br />

values for the cases when the switch is on and off.<br />

When specifying the text displayed on controls, it is possible to<br />

use variables. This will allow for changes in the text contens of<br />

the dialog according to selected bolt’s parameters. For example,<br />

in the dialog of our bolt, the text for one of the controls of the<br />

type “Static text” is set in the following way: “Bolt<br />

{$ispsp}М{dd}{$polesp}%%042{ll}{$klprsp}{$mmat}{$Pocrn<br />

om} GOST 7795-70”.<br />

Next, change the page size (this can be conveniently done by the<br />

command “Customize|Page size”) to make its size equal to<br />

the size of the dialog box. After that, start the editing mode of the<br />

control elements and define the order of the control elements.<br />

The order of the control elements determines their appearance in<br />

the dialog box and their activation order when using the <br />

key. It is recommended to place static text first, followed by the<br />

control elements bound to the variables, in the order that provides<br />

easy switching between them.<br />

Similarly, we create the second page of the dialog of the<br />

fragment’s parameters which will contain additional parameters<br />

of the bolt.<br />

Creating Libraries of <strong>Parametric</strong> Elements<br />

715

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

Saved successfully!

Ooh no, something went wrong!