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

490<br />

Note that modifications in variables and expressions driving the construction lines, also affect the<br />

dimension display and dimension values.<br />

The dimensions themselves can be also used for modifying position of the construction lines, with<br />

which these dimensions are connected, and as a consequence, values of the variables determining<br />

parameters of these lines. To do that, it is necessary to point the cursor at the dimension value and hit<br />

. Chosen dimension value is selected for editing. Upon modifying the dimension value, the system<br />

automatically changes position and parameters of construction lines, on which the given dimension is<br />

based. If position of the given line was determined by a variable, the value of this variable will be<br />

also changed.<br />

When using variables as construction line parameters, try not to use complicated expressions. The<br />

recommended approach is defining construction line parameters via a standalone variable or a simple<br />

expression. All complicated mathematical relations can then be defined within the variable editor. This helps<br />

keeping definitions in one place, without need of visiting all possible commands and searching through all<br />

elements for handling.<br />

Variables and Visibility Levels<br />

It is often convenient to define visibility level values by<br />

variables. This helps covering a wider variety of configurations<br />

by a single parametric model. Consider, for example, the<br />

parametric drawing on the diagram.<br />

The two views are interdependent. The slanted line was<br />

constructed as passing through a node, at a specified angle to the<br />

horizontal. A variable AL is introduced as the parameter of the<br />

line. The configuration on the diagram corresponds to the value<br />

of AL = 130. Let’s modify the variable value to AL = 60.<br />

The upper dashed graphic line on the side view stays after<br />

modifications, which is wrong. This graphic line was originally<br />

created on top of a construction line parallel to the horizontal line<br />

and tangent to the circle. This flaw can be fixed by using the<br />

variable LEVEL as the value of the visibility level of the dashed<br />

graphic line.<br />

The value of this variable can be defined by the following<br />

expression:<br />

LEVEL = AL > 90 ? 0 : -1<br />

The visibility interval for graphic lines is set from 0 to 127 (inclusive). In our case, if the variable AL is<br />

greater than 90, then LEVEL equals 0, which is within the visibility interval. Therefore, the graphic line will<br />

be drawn. If AL is less than 90, then LEVEL = -1, which is outside the visibility interval, and the graphic<br />

line will not be drawn. This drawing sample can be found in the directory “Documentation<br />

samples/<strong>2D</strong> <strong>Design</strong>\Variables\Drawing 1.GRB”.<br />

This approach allows creation of models representing a family of product modifications. An example could<br />

be a drawing of a bolt with various head styles.

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

Saved successfully!

Ooh no, something went wrong!