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.

<strong>Fundamentals</strong>. Two-Dimensional <strong>Design</strong><br />

60<br />

The same operations can be carried out in the dialog window of the command “V: Edit Variables”:<br />

Keyboard Textual Menu Icon<br />

«Parameters|Variables»<br />

Similarly, define a variable “H” as the distance from the base line to the top side of the main view. Select the<br />

line on the drawing by clicking and enter the variable name in the property window. Now there will be<br />

already two variables in the window “Variables”, and you can, by modifying their values, observe the change<br />

in the drawing.<br />

Try making an expression. In the window “Variables” place the cursor in the field “Expression” of the<br />

variable «H» and press to enter the edit mode. Specify the expression «W/2» instead of the numerical<br />

value. This means that the value of “H” will be equal to the half of “W”. From now on, changing just the<br />

value of “W” will automatically reflect on the value of “H”.<br />

Next, let’s assign an “R” variable to the radius of the circle defining the fillet at the upper-right corner of the<br />

plate. Select the circle on the drawing by . In the property window specify the radius as “R” variable.<br />

After confirming its creation, in the window “Variables” set the variable to the following expression: W <<br />

100 ? 0 : 6<br />

This expression means that “R” equals 0 when “W” is less than 100, and equals 6 otherwise.<br />

Let’s briefly explain the syntax of the expression. Its members are described as follows.<br />

< - is the “less than” sign<br />

? - means “then”, “in such a case”<br />

: - means “else”, “otherwise”<br />

The complete expression is written as<br />

R = W < 100 ? 0 : 6<br />

The value of “R” equals 0, if “W” < 100, and equals 6 for any other value of “W”. Therefore, there are only<br />

two possible values of “R” - either “0” or “6”.<br />

Check this on your drawing. Try setting “W” values greater or less than 100, and watch what’s happening.<br />

Note that when the radius of the fillet equals 0, then the radial dimension automatically disappears. The<br />

system does it for the user.<br />

Therefore, one can create a variety of relations between variables, including quite complex ones, using just a<br />

few basic terms. You will get to know all capabilities of the variables functionality in later chapters.<br />

Creating Sketch, Non-parametric Drawing<br />

We will use the same familiar drawing example of the plate with a conical hole. Let’s begin with<br />

constructing the main view. Thereafter, we will create two projections, the “Left Side View” and the “Plan<br />

View”, using object snapping mechanism.<br />

In this case, all construction is done using the command “SK: Create Sketch”. Call the command via<br />

Keyboard Textual Menu Icon<br />

«Draw|Sketch»

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

Saved successfully!

Ooh no, something went wrong!