Parametric User
Parametric User
   Parametrics
USER GUIDE
                         www.cad-schroer.com
All rights reserved. No part of this documentation may be reproduced in any manner (print, photocopy or other) without the written
permission of CAD Schroer GmbH.
CAD Schroer GmbH has made its best effort to ensure that the information in this document is accurate and reliable, but cannot
guarantee the accuracy, timeliness, reliability or completeness of any of the information contained herein. CAD Schroer GmbH
will not make any warranty nor accept legal responsibility or liability of any kind for consequences resulting from errors or omis-
sions.
All other brand or product names are trademarks or registered trademarks of their respective owners.
August 2009
CAD Schroer GmbH                        CAD Schroer France SAS                           CAD Schroer Italia SRL
Fritz-Peters-Str. 26-30                 17, Rue du Docteur Lebel                         Piazza Della Resistenza 26
47447 Moers                             94300 Vincennes                                  20021 Bollate MI
TABLE OF CONTENTS
Preface 7
Introduction                                                                                                                               9
  What Is Parametric Design? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
  How Parametric Design Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
  Tooltray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Dimensioning                                                                                                                               25
  Dimensions in Parametric Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                  26
  Tolerance Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .       29
  Linear Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .        32
  Circle and Arc Dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .             34
  Over-dimensioning and Under-dimensioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                          36
  Change Dimension Text. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .             38
Getting Started                                                                                                                            39
  Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   40
  Creating a Viewbox . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         41
  Creating a Reference Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .             43
  Dimensioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .     45
  Building the Parametric Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .             46
  Examining the Parametric Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                48
  Entering Your Own Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                 49
  Parameterizing an Object. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .            50
  Example 1: Using a Prim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .            53
  Example 2: Using Baselines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .               57
Symbols                                                                                                                                      133
  Creating Parametric Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
  Loading Parametric Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
  Worked Example 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .              142
  Loading Parametric Symbols With Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                           144
  Loading Symbols Using CPI Named Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                               148
  Worked Example 2 - CPI Named Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              150
Parametric Groups                                                                                                                            159
  Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
  Creating a Parametric Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
  Example 1: Static Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                 163
  Example 2: Dynamic Group with One Prim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                             165
  Example 3: Dynamic Group with Two Prims . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              167
  Example 4: Rotating Parametric Groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                          171
  Example 5: Dynamic Group with Three Prims . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                              172
Post-Parameterization                                                                                                                        175
  Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
  Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
  Creating Post-Parametric Definition Sheets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                          180
  Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .      182
  Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .      186
  Demo Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .         188
Simulating Mechanisms                                                                                                                        189
  Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .       190
  Dialog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   191
  Example 1: Repeated Parameterization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                           193
  Example 2: Simulating Linear Motion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                       195
  Example 3: Simulating Rotary Motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                        197
  Example 4: Using a Program to Simulate Motion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                                200
  Example 5: Simulating a Working Mechanism. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .                               202
  Plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .   204
Index 229
PREFACE
Book Conventions
The following table illustrates and explains conventions used in writing about MEDUSA applica-
tions.
 Convention         Example                                     Explanation
 Menu               Choose Zoom from the View menu              Indicates a command, function or
                    Add button                                  button that you can choose from a
                    Choose the tool Creates thin solid lines.   menu, dialog or tooltray.
 Syntax             acos 0.345                                  User input,
                    The ciaddobj command                        commands, keywords and
                    Return or Control-g                         keys to press on a keyboard.
 SyntaxBold         Enter command> plot_config                  Where system output and user input
                                                                are mixed, user input is in bold.
 SyntaxItalic       tar -cvf /dev/rst0 filename                 Supply an appropriate substitute for
                                                                each variable; for the given example
                                                                replace filename with an actual file
                                                                name.
 Filename&path      medusa\med2d\m2d\src\                       Shows path and filenames.
 UPPERCASE          MEDUSA or CADCONVERT                        Names of products.
 italic             left mouse button                           Indicates the buttons to press on a
                    Drafting User Guide                         mouse and names of books.
 bold               A temporary group is a collection of ...    Emphasize text.
Please note: Illustrations showing menus and forms are taken from a window system.
             The display for other platforms can differ slightly.
Online documentation for each book is provided in HTML format. You can view this online
documentation in the installation directory, on the CD-ROM, or directly by calling it up within the
MEDUSA user interface.
Installation Directory
      1. Navigate to the directory where MEDUSA is installed.
         <MEDUSA installation directory>/meddoc/doc/<language>/ (Unix)
         <MEDUSA installation directory>\meddoc\doc\<language>\ (Windows)
         where <language> is either english, german or french.
      2. Click on the file mainmenu.htm.
      3. Click the book title you want to view.
CD-ROM
      1. Navigate with your HTML browser to the CD-ROM into the following directory.
         <CDROM_mount_point>/doc/<language>/ (Unix)
         <CDROM_Drive>:\doc\<language>\ (Windows)
      2. Click on the file mainmenu.htm.
      3. Click the book title you want to view.
MEDUSA Interface
      1. Click left on the entry Help inside the main menu.
      2. Choose MEDUSA Documentation from the pulldown menu.
         A browser opens showing the mainmenu.htm listing all available documents.
Printing Documentation
A PDF (Portable Document Format) file is included for each online book. See the first page of
each online book for the document name which corresponds to the PDF file name (e.g. HTML
title is Drafting User Guide, PDF file is drafting.pdf). Check with your system administrator if you
need more information. You must have Acrobat Reader installed to view and print PDF files. If
you don‘t have the Acrobat Reader, you can download it for free from the Adobe homepage:
           http://www.adobe.com/products/acrobat/readstep.html
INTRODUCTION
• Tooltray .................................................................................... 23
MEDUSA Parametric Design is a system for scaling, or reconfiguring, the size and shape of
part geometry according to a defined set of dimensions, or parameters. In MEDUSA 2D, you
change the shape of an object using one of the transformation tools such as magnify or shrink,
mirror, or rotate, or by redrawing it completely. Using Parametric Design, you change the shape
of an object by changing its dimensions, pulling and stretching the geometry into another shape.
You can use Parametric Design to do any of the following:
     • Reconfigure the geometry of a part
     • Create families of parts where one general case of a part is defined with a set of
        dimensions that you can vary
     • Create libraries of symbols
     • Simulate the action of mechanisms
Parametric Design is used primarily to change one or more dimensions of an object on a sheet
to make either fine adjustments to a design or radical changes to a drawing.
For example, the master drawing of the part shown in the figure below has three dimensions.
Any of these can be changed to produce a new shape. If required, all three dimensions can be
changed.
        Figure 1    Changing the Dimensions of an Object
The Parametric Design system makes it easy to produce families of parts, where components
which have similar functions but vary in shape and size. A good example is a set of spanners of
various sizes.
Figure 2 shows another example, a set of brackets. Parametric Design allows you to produce a
whole family of parts automatically from a single master drawing using a set of dimension vari-
ables.
         Figure 2    A Family of Parts Made From a Single Master Drawing
You often need to load standard symbols onto a MEDUSA sheet. Using Parametric Design, you
can create libraries of parametric symbols to suit a range of different applications without having
to redraw the symbol each time.
This example shows a master drawing of a tab and some of the results obtained by loading the
symbol with different relative dimensions.
        Figure 3    A Symbol Library Created Using Parametric Design
By adding a table of dimensions to the master drawing, all the required sizes may be pre-
defined. In this way you can produce a drawing of a particular size of component simply by
selecting a set of dimensions from the table.
You have seen how you can use Parametric Design to change the size of an object on a sheet.
By progressively altering one or more dimensions and redrawing the new view over the old, you
can create an impression on the screen which simulates the movement of a mechanism. You
can then investigate potential collisions as the components move and reciprocate. For example,
Figure 4 shows a simulation of the motion of a lift arm assembly for a loader shovel.
Parametric Design places some or all of the points that make up an object onto a grid. The grid
is moved according to the parameters you specify, either angles or lengths, and this process
pulls the points of the object to their new positions.
To use Parametric Design, you do the following:
      1. Create a parametric viewbox around the object you want to parameterize.
      2. Define a reference point that will remain static during parameterization.
      3. Decide if all or only part of the object needs to be parameterized.
      4. Dimension the object using MEDUSA dimensioning facilities to place relevant object
         points on the grid.
      5. Check that all the moveable points of the object lie at grid intersections.
      6. Exclude some parts of the object from parameterization, if you want to.
      7. Enter new parameters.
      8. Execute the Parametrization that moves the grid.
      9. Check the result.
Viewboxes
Before you can parameterize any geometry, you must place a parametric viewbox on the sheet
around the geometry.
A parametric viewbox is a closed line of type LPV, consisting of straight line segments. Only ele-
ments wholly within a viewbox are affected by Parametrization. Viewboxes have the following
features:
      • They may be any shape
      • They must not overlap or be nested
Viewboxes are processed in turn independently of one another, in the order that you place them
on the sheet. The maximum number of viewboxes allowed per sheet is 20.
         Figure 5   Examples of Parametric Viewbox Shapes
Reference Points
The geometry that you intend to parameterize must have a datum or reference point. This is the
point from which all movement occurs. The reference point remains fixed on the sheet during
parameterization. You can use intersecting static baselines or a prim to specify a reference
point.
Static Baselines
One way of specifying a reference point is using a pair of intersecting static baselines. A base-
line is a line of type LBL. A static baseline has static points (FUNV0) at each end. You would
normally draw a horizontal baseline and a vertical baseline through the geometry. The intersec-
tion of these two lines is the fixed reference point which does not move during parameterization.
         Figure 6    Intersecting Static Baselines
Intersecting static baselines such as those shown above in Figure 6 generate six grid lines, of
which you can normally see just two. Each baseline supports three grid lines: one along its
length, and two at the ends of the line, perpendicular to it. The default length of these perpen-
dicular grid lines depends on the grid tolerance. The default grid tolerance is 0.1 mm, so you
cannot normally see these grid lines at all.
PVG Prims
Another way to specify a reference point is using a prim of type PVG. The datum of the prim is
the reference point. Horizontal and vertical grid lines are generated through the datum.
         Figure 7    The Parametric Design Datum Prim (Type PVG)
You can also use an orthogonal view prim to specify a reference point. The datum of the prim
acts as a static reference point and grid lines are generated along the arms of the prim. A
worked example showing how to use a view prim as a reference point is given on ”Getting
Started”, “Example 1: Using a Prim” on page 53.
         Figure 8    Orthogonal View Prims
Choosing the right place for a reference point is not always easy. The reference point should
usually be at the point from which you would choose to dimension your drawing. In general, a
good reference point is a central point on a line of symmetry, for example the center of a circle.
Do not choose a point which should move during parameterization.
Static baselines: Static baselines can be drawn at any orientation although they are frequently
at right angles, as shown in Figure 9.
         Figure 9    Positioning Baselines
     Figure 9 (a)   The center of the circle is also the center of symmetry. This makes an ideal
                    reference point.
     Figure 9 (b)   If the component lies at an angle, draw the baselines at the same angle, so
                    that they lie along lines of symmetry.
     Figure 9 (c)   The bottom left point is a suitable reference point because it is used when you
                    dimension the width and length. Any point from which dimensions are
                    measured is a useful reference point.
Prims: Figure 10 shows some examples of how you might position a prim in relation to object
geometry. You can use a PVG prim or an orthogonal view prim.
         Figure 10      Positioning a Prim
  Figure 10 (a)      The datum point of the prim is placed precisely at the bottom left corner point of the
                     object. Grid lines are generated in the direction of each arm.
  Figure 10 (b)      If the component lies at an angle, adjust the prim so that its arms run along the
                     lines of the component. To do this, position the prim in its normal orientation then
                     rotate it until it aligns with the component.
  Figure 10 (c)      Make sure that at least one of the arms of the prim lies along an existing line. This
                     helps when the grid is drawn at a later stage.
  Figure 10 (d)      It is perfectly valid to place a prim at a center of symmetry. Notice that this PVG
                     prim does not lie on any existing lines.
  Figure 10 (e)      You may sometimes need to add supporting lines to help create the grid. In this
                     example, two dashed lines have been added.
Parametric Design works not by moving individual points but by moving a grid upon which all
moveable points are placed. The grid consists of lines at any angles and also of circles. It is not
a regular orthogonal grid like the construction grid in the 2D drafting system.
Grid Lines
Parametric grid lines are frankfurter lines, type STK, and can be oriented at any angle and spac-
ing. They are drawn on top of existing lines in your drawing. If your drawing contains diagonals,
arcs, or circles then grid lines are also drawn in the shape of diagonals, arcs, or circles.
         Figure 11   Parametric Grid Lines
You place moveable points upon the grid by dimensioning them. Each dimensioned point in the
object geometry is fixed to a grid line intersection. Points that are fixed to grid intersections
move with those grid intersections during parameterization.
Geometric Tolerance
The system uses a geometric tolerance or grid tolerance to match object points to grid line
points. The default tolerance is very small (0.1 mm) and you are advised not to change it.
You can use any MEDUSA drawing as input to the Parametric Design system. However, you
should be aware that you cannot always draw and dimension an object in the normal way and
then parameterize it. You may need draw an object in a particular way to avoid constraining the
movement of points during parameterization.
This section describes some of the ways you can avoid placing unnecessary constraints on the
way geometry is transformed during parameterization. Constraints can occur if you have either
coincident or collinear points in the master drawing:
Coincident points in object geometry can cause problems for Parametric Design. If you create
points on top of each other in the master drawing, these points will remain coincident whenever
you parameterize the drawing. The result may not be what you intend. If there are small details
in your drawing, such as fillets, it is best to exaggerate them or the distance between them. This
ensures that points are not coincident. The system uses a geometric tolerance to decide
whether or not two points are coincident.
Figure 12 shows how you might want to parameterize an object. The drawing on the right can
only be generated from the master drawing on the left if the master is drawn correctly.
         Figure 12   Possible Parameterization
Figure 13 shows the fillet detail and illustrates how to solve the problem of coincident points.
         Figure 13   Avoiding Coincident Points
In this example, if you draw two 3 mm radius fillets in an 8 mm gap, the end points are com-
pletely separate. This allows you to move the points apart during parameterization, as in
Figure 12. However, if you create the 3 mm fillets in a 6 mm gap, the end points are coincident
and are locked together. The points cannot move apart during parameterization, and therefore
you cannot parameterize the object freely.
Figure 14 shows another example. Here, there are two versions of the master drawing of a
mechanism in which a piston is required to move up and down a cylinder.
In Figure 14 (a), the piston cannot move during parameterization because its top two points are
coincident with the points at the top of the cylinder. To allow the piston to move freely you must
draw the piston in the position shown in Figure 14 (b).
Collinear Points
Points are considered to be collinear if a straight line can be drawn through them. During
parameterization, collinear points which lie along the same grid line remain collinear even if you
attempt to change their orientation during parameterization. The following example illustrates
this.
Figure 15 shows geometry containing several collinear points. The vertical dimension gener-
ates grid lines running in the same direction as the dimension leader lines. The grid lines appear
as frankfurter lines (line type STK).
         Figure 15   Collinear Points on the Same Grid Line
Any points lying along these grid lines are kept collinear during parameterization. This means
that it is not possible to parameterize the drawing to produce the shape shown in Figure 16.
Points 3 and 4 must remain collinear with points 1 and 2. The same restriction applies to points
lying along the lower grid line in Figure 15.
         Figure 16   Aim of Parameterization
Geometric properties are automatically preserved during parameterization. For example, lines
that are perpendicular are kept perpendicular. Tangential lines remain tangential. For example,
in Figure 1, “Changing the Dimensions of an Object” on page 10, the straight line segments
remain tangential to the arcs whenever this component is parameterized.
Horizontal and vertical lines also remain in the same orientation. In Figure 17, horizontal and
vertical properties of the master drawing are maintained whenever the object is parameterized.
        Figure 17   Example of Parameterizing a Specific Case
By rotating the master drawing before parameterizing it, you can produce several versions of
the master, in a variety of shapes and orientations. For example, the master drawing in
Figure 18 has been rotated by a few degrees and consequently there are no horizontal or verti-
cal lines. You can now produce any sized or shaped variant of the original object by parameter-
izing the master drawing. Notice that this method also allows you to create new objects with
vertical or horizontal sides.
        Figure 18   Example of an Ideal Master Drawing
In many cases a horizontal master drawing may be sufficient. It is only when you need to rotate
the drawing during parameterization that the master drawing must be drawn at an angle. This is
particularly important when creating parametric symbols or when simulating mechanical move-
ment. In these situations objects frequently need to be rotated as they are parameterized.
Special Cases
As shown above, a master containing horizontal and vertical lines may be treated as a special
case. Restrictions can also be caused by lines drawn at angles of 30, 45, and 60 degrees.
These are also regarded as special cases. So if you need to rotate the master drawing, use a
fractional angle, such as 13.5 degrees. This ensures that the rotated drawing contains no lines
at angles which are regarded as special cases. If a drawing fails to parameterize, always check
for special cases, particularly the angles of the lines in the drawing.
When you parameterize geometry, always use the master drawing. You may not be able to
parameterize a drawing which is itself a parameterized version of the master. This is because a
drawing produced by parameterization may contain restricting features not present in the mas-
ter drawing. These might be coincident points or lines, or lines at particular angles, or any of the
other special cases mentioned above.
If you want to produce several parameterized versions of an object, create the master drawing
and save the sheet. To produce the first parameterized version, take the master drawing and
parameterize it. The new version must be stored under a new name, so rename the sheet and
save it. To produce the second parameterized version of the object, and all subsequent ver-
sions, reload the master drawing and parameterize it with new parameters each time.
Tooltray
Please note: Before you can work with 2D Parametrics, you have to activate the license by
             choosing Licenses -> 2D Parametrics inside the main menu bar.
The following figure shows the tooltray available inside the graphical user interface of
MEDUSA.
         Figure 19      2D Parametrics Tooltray
Parameterize Grid
DIMENSIONING
This chapter describes how to prepare a drawing for parameterization by dimensioning the
object geometry. This places the object points onto a parametric grid.
To place points onto grid intersections you must dimension them. You can dimension all or only
part of an object, but all points which are to move must be dimensioned. Points that are not
dimensioned generate an error message during parameterization.
Normal dimensioning methods do not always work when using Parametric Design and there are
some dimension types that you cannot use. You can use any of the following dimension types to
prepare a drawing for parameterization.
     • Chain
     • Coordinate
     • Datum
     • Angular
     • Radial
     • Diameter
Dimensions with tolerances may be parameterized normally. Dual unit dimensions can also be
parameterized.
You cannot parameterize geometry that has been dimensioned with either of the following
dimension types:
     • Axonometric dimensions
     • Tolerance limit dimensions (LIM)
If you try to parameterize drawings that contain axonometric or tolerance limit dimensions, you
will see the following error message:
        Illegal dimension type
Refer to the MEDUSA Parametric Design Reference Guide for details of how to convert tole-
rance dimensions into a format that can be parameterized.
Dimensioning Techniques
When you dimension geometry which will be parameterized, use the following guidelines:
    • Always use near probes to create the dimension construction line, except for the first
       point which can be created with any kind of probe.
    • Start by dimensioning points in relation to the reference point. This allows the grid to
       grow outwards from the reference point.
For every new dimension group you create, one of the points you are dimensioning must
already lie at a grid line intersection. The exception to this rule is if you are using chain dimen-
sioning, where you can use center support to place points on the grid (see ”Linear Dimensions”,
“Center Support” on page 32).
Example
The reference point in Figure 20 generates two grid lines, one horizontal and one vertical,
through the datum of the prim. Point A coincides with the reference point, and therefore it is at a
grid intersection. Points B, C, and D must be placed at grid intersections by dimensions.
         Figure 20   Grid Lines Generated By Reference Point
Dimensioning the line AB places point B on the grid, as shown in Figure 21.
         Figure 21   Extra Grid Intersection Generated by Dimensioning Line AB
When the line BC is dimensioned as in Figure 22, all the points of the object lie at grid intersec-
tions and are said to be supported on the grid.
         Figure 22   Grid Completed by Second Dimension
Tolerance Definition
This section shows you how to create permissible upper and lower tolerance for dimensions.
For this you can define variable tolerances and its usage for parameterization.
Toolset
           From left to right the succession of switches is the same as it is in the dialog PAR VAR
           Setting from top to bottom, explained below.
PAR VAR Settings are used for specifying how the system calculates new dimension values
during parameterization for those dimensions, which have upper and lower tolerances defined.
The following dialog opens if you click left on the tool Displays the current tolerance settings.
           Figure 25   Dialog for Tolerance Settings
All the options are explained in detail in the Parametrics Reference Guide, chapter „Dimension-
ing“.
Linear Dimensions
Linear dimensions, for example chain or datum, generate grid lines along the leader lines.
When you create linear dimensions, the end points of the dimension must be at grid line inter-
sections. The placement point does not need to be at a grid line intersection. Figure 26 shows
the significant points of a linear dimension.
         Figure 26   A Linear Dimension
                                                                       2
                             endpoints of dimension                        leader line
                       1                         3
             leader line        dimension line       placement point
Horizontal and vertical: Use horizontal and vertical dimensioning only if the part of the object
being dimensioned is to remain horizontal or vertical.
Parallel and perpendicular: If you intend to rotate an object during parameterization, use par-
allel or perpendicular dimensioning. This is important when working with parametric symbols,
which are often rotated as they are loaded (see “Symbols” on page 133).
Center Support
Normally, you dimension geometry outwards from the reference point. If the reference point
does not lie on a line of geometry, but instead lies at a center of symmetry then you can create
certain chain dimensions using center support. This means that the reference point does not
have to be specifically dimensioned. Center support is possible when an existing grid line per-
pendicular to the dimension passes through the center of the dimension.
In the example in Figure 27, the reference point is the intersection of two static baselines. A hor-
izontal baseline passes through the center of diameter dimension on the left and does not coin-
cide with any lines of geometry.
To dimension the diameter on the left of the object in Figure 27 from the reference point you
would need to use a three point dimension construction line including points A and B and the
reference point. Using a chain dimension you can use a two point construction line from points
A to B. Figure 28 shows how the diameter dimension is supported by the horizontal baseline.
        Figure 28   Chain Dimensioning With Center Support
Datum and coordinate types of dimensioning can only be drawn horizontally or vertically and so
you should not use them when an object is in a rotated position or will be rotated at a later
stage.
Unlike chain dimensions, datum and coordinate dimensions cannot use center support.
You can create circle and arc dimensions in the usual way.
For fillets, you can dimension each fillet individually or you can use the PARFIL in-sheet com-
mand to set fillet dimensions automatically during parameterization. This offers the advantage
that the whole geometry can be parameterized with its fillets without dimensioning each fillet
individually
2D Parametrics provides the following dialog for defining filleting settings for undimensioned fil-
lets. It is opened by the tool Sets options for fillet behavior during parameterization :
           Figure 29   Dialog for Filleting Settings
Please note: The options of the dialog are valid for undimensioned fillets. Fillets which have a
             dimension or for which dimensions are set automatically with a PARFIL command
             are parameterized as defined.
Keep
           If there is no dimension for the fillet, it is taken without changes.
Explicit
           (default) If this option is chosen only those fillets are parameterized which have a value
           or expression defined explicitly, e.g. with a PARFIL text (see example on the next
           pages). Undimensioned fillets produce error messages.
Set All
           If set, undimensioned fillets get the defined Radius.
Set Max
           If set, undimensioned fillets which are smaller than or equal to the Maximum Radius are
          taken without changes. Undimensioned fillets which are larger are set to Maximum
          Radius.
Set Less Than
          If set, undimensioned fillets which are smaller than or equal to the Maximum Radius get
          the Radius.
Radius
          is the value used for undimensioned the fillets for the options Set All and Set Less Than.
Maximum Radius
          is the maximum value for undimensioned fillets used for the conditions Set Max and Set
          Less Than.
Please note: You find a complete example for parameterizing components with fillets in chapter
             ”Simple Parameterization Examples”, “Example Two” on page 68.
When you prepare a drawing for Parametric Design, it is important that all the points you want to
scale are placed onto the grid using dimensions. However, it is possible to over-dimension an
object so that conflicts prevent the Parametric Design system from working correctly. Similarly, if
the object is under-dimensioned, you will not be able to parameterize it.
Under-dimensioning
Under-dimensioning means that you have not dimensioned all the points in the geometry and,
therefore, there are some points that are not on the grid. Adequate dimensioning ensures that a
grid line is drawn on top of every line in the object, and that every point lies at a grid line inter-
section. If you try to parameterize a drawing which is inadequately dimensioned, you receive
the following error message on the sheet with its datum at the offending point:
         Point not dimensioned
Figure 30 shows some examples of objects which are under-dimensioned and the error mes-
sages resulting from trying to parameterize these objects with new dimension parameters.
         Figure 30       Examples of Under-Dimensioned Drawings
Neither of these could be parameterized because not enough dimension information is pro-
vided:
                     Figure 30 (a)      The apex point is not dimensioned.
                     Figure 30 (b)      The position of the top right point is uncertain.
You cannot draw these shapes from the information provided. Therefore Parametric Design
cannot draw them either.
Over-dimensioning
It is a common error to dimension an object so that some of the object points are located at an
intersection of more than two grid lines. You will realize that you have made a mistake when you
try to parameterize the object. You will receive the following error message written onto the
sheet with its datum point indicating the problem point:
         Ambiguous construction
Figure 31 shows some examples of objects which have been over-dimensioned and the error
messages resulting from trying to parameterize them. In both cases, it is possible to specify val-
ues for the dimension variables which would make the objects impossible to draw.
         Figure 31    Examples of Over-dimensioned Drawings
Dimensioning Hints
To avoid over-dimensioning, study the geometry and plan dimensions carefully. Keep in mind
that each object point needs to lie at a simple grid intersection of no more than two grid lines.
You must give enough information for the whole of the drawing to be created without conflict or
ambiguity.
If you want to change texts of dimension groups, for example to replace numerical values by
variables or re-name a variable, the tool Change selected dimension text is provided.
Please consider the following when using this tool:
     • When selecting several dimension groups only texts in the first selected group are
        changed.
     • Only texts will be replaced, which have the text string found first in the dimension
        group. Texts with other strings remain unchanged.
     • If the first dimension text differs from the others, only this first text will be changed.
Following steps show how to change texts of a selected dimension:
      1. Select a dimension.
      2. Choose the tool Change selected dimension text .
         The following dialog opens:
         Figure 32   Dialog for Changing Texts
GETTING STARTED
This chapter contains two simple examples which show you how the MEDUSA Parametric
Design system works. Before working through the examples in this chapter, you should have
read about viewboxes, reference points and grid lines in ”Introduction”, “How Parametric Design
Works” on page 14.
• Overview .................................................................................. 40
• Creating a Viewbox.................................................................. 41
• Dimensioning ........................................................................... 45
Overview
The following procedure gives an overview for simple parameterization of a part. You can per-
form steps 1 through 4 in any order.
     Step   Action                                        What You Do
     1      Draw the object you want to parameterize.     Use any line type.
                                                          Enclose the objects you wish to scale with
     2      Draw a parametric viewbox on your sheet.      a line of type LPV. See “Creating a
                                                          Viewbox” on page 41.
                                                          Place a prim or two intersecting baselines
            Define a datum or reference point which
     3                                                    at your chosen reference point. See
            will remain static during parameterization.
                                                          “Creating a Reference Point” on page 43.
                                                          Dimension the component. See
     4      Place all object points on the grid.
                                                          “Dimensioning” on page 45.
                                                          See “Building the Parametric Grid” on
            Check that the grid supports each of the
     5                                                    page 46 and “Examining the Parametric
            points to be scaled.
                                                          Grid” on page 48.
                                                          Place the new value into the text edit field.
            Give new values for the dimensions you
     6                                                    See “Entering Your Own Parameters” on
            want to change.
                                                          page 49.
                                                          Use temporary parameterization until you
                                                          are satisfied with the parameterized
     7      Parameterize the object.
                                                          drawing. See “Parameterizing an Object”
                                                          on page 50.
Creating a Viewbox
Before you can use the Parametric Design system you must have a sheet displayed on the
screen. The sheet must contain a viewbox which surrounds the object you intend to parameter-
ize. If you use a standard drawing sheet, the sheet may already contain a viewbox. The viewbox
may be difficult to see at first because it coincides with the outline of the sheet, and some parts
of it are invisible.
Toolset
The following figure shows the toolset for creating view boxes.
          Figure 33      Toolset for Creating Viewboxes
If you are not using a standard sheet, or if your standard sheet does not have a viewbox, you
must create a line of type LPV and draw a viewbox for yourself. Use the tools given above. The
viewbox can be of any shape, as shown below.
          Figure 34      Examples of Parametric Viewbox Shapes
When the drawing is parameterized, only those parts of the drawing inside the viewbox are
affected. The geometry which you intend to parameterize must be completely inside the view-
box. All dimensioning, grid lines, and baselines must also be inside the viewbox.
Please note: Note that after parameterization all elements should be still inside the view box
             otherwise you get error messages for those parts which leave the view box.
Number of viewboxes
You can place up to 20 viewboxes on a sheet, but they must not overlap or be nested. Each
viewbox is processed separately.
The geometry that you intend to parameterize must have a datum or reference point. This is the
point from which all movement occurs. The reference point remains fixed on the sheet during
parameterization.
Toolset
The following figure shows the toolset for creating reference points.
           Figure 35        Toolset for Creating Reference Points
           The point functions in this dialog are disabled until you placed the first point of the base
           line by probing into the sheet. If you have done this, the point functions are enabled.
           A point function is always applied to the point you have drawn last.
           If you probed the first point of a baseline and then choose a point function, it is not
           applied to the first point until you have drawn the second point.
           If you probed the second point and then choose a point function, the function is applied
           to the current second point immediately. This is also valid for all further points of the
           baseline.
           For details on the meaning of the point functions, see the next section.
Point Functions
The point functions at the ends of baselines indicate how the geometry is constrained when the
drawing is parameterized.
The available point functions are:
Perpendicular
           Perpendicular point, point function FUNV 10.
           This point function guarantees that the corresponding segment on which it is placed is
           perpendicular to the element segment on which the starting point of the appropriate
           baseline is.
Tangent
           Tangent point, point function FUNV 12.
           This point function guarantees that the segment on which it is placed is tangential to
           the element segment on which the starting point of the appropriate baseline is.
Circle Center
           Circle Center point, point function FUNV 26.
           This point has to be on a grid line and it marks the center of a circle.
Intersection
           Intersection point, point function FUNV 11.
           This point marks an intersection of existing grid lines.
Standard
           Static point, point function FUNV 0.
           If this point function is at both ends of a line it is a static baseline, which does not move
           during parameterization.
Details and examples for the point functions are given in the Parametrics Reference Guide,
chapter „Geometric Constraints“.
Dimensioning
For parameterizing geometry you need to dimension it and then replace the dimension texts
either with new values or expressions. For details on dimensioning see the appropriate chapter
in the MEDUSA Drafting Guide.
Dimensioning for parameterization was already explained in “Dimensioning” on page 25.
Grid lines are generated first through any reference points in the drawing, through the prim
datum or along the static baselines. Then they are generated through points that you have
dimensioned.
Toolset
You can dimension a drawing one step at a time, displaying the grid at each stage, or you can
dimension the whole of the drawing then draw the grid as a final check.
Throughout this manual, the grid is displayed after each new piece of dimensioning is added.
This is to help you to understand how grid lines are created. While you are learning to use the
system it is better to add one dimension at a time, and then use Draws the grid corresponding to the
original drawing and undoes it to display the grid so far.
When you have checked to see that the grid is developing adequately, you should remove all
grid lines.
If you used the tool Draws the grid corresponding to the original drawing and undoes it for drawing the grid,
you only need to refresh the graphical area for deleting the displayed grid lines.
For the other tools use the Parametric Layers dialog:
      1. Open the dialog Parametric Layers (see ”Layers and Parametric Switches”, “Parametric
         Graphics Control” on page 111).
      2. Switch on the option Grid Lines and click left on the button Delete.
         The permanent grid lines are removed immediately.
The following procedure will help you if you have any problems with building the grid or if you
want to see how the grid is developing. You may find it useful to perform them after you have
completed each example in this chapter. This diagnostic routine uses the tools Draws the grid corre-
sponding to the original drawing and Sequences through the grid lines (see Figure 37, “Toolset for Drawing
Grids” on page 46), so grid lines and any error texts are drawn permanently on the screen.
       1. Refresh the screen with the Refresh Graphics tool              from the toolbar to remove any
           temporary grid lines.
       2. Choose the tool Draws the grid corresponding to the original drawing to draw grid lines
           permanently.
       3. Choose the tool Sequences through the grid lines.
           The following dialog opens.
         Figure 38    Dialog Grid construction
          • Click left on the button Next to display the first grid line. If you click left Next again, a
            further grid line is drawn and so on.
          • Click left on the button Previous to hide the currently displayed grid line. If you click
            left Previous again, a further grid line is hidden. The button Previous is active until no
            grid line is displayed anymore.
          • Click left on the button Start to return to the beginning of examining grid lines. No grid
            line is displayed.
          • Click left on the button OK to close the dialog and display all grid lines.
       4. You can remove the permanent grid lines as explained in “Deleting grid lines” on
          page 47.
Before you can create different parameterized versions of a component, you must replace the
original dimension text values with your own parameters.
In this section the value will be replaced by another value. But you also can use
       • variables and expressions, which is explained in detail in “Variables and Expressions”
          on page 91, and
       • tables to store one or more groups of values on a sheet which is described in “Tables”
          on page 117.
When you replace dimension values with your own parameters, be careful which text string you
alter. Dimension texts consists of the numeric value text and optional prefix or suffix texts.
These give you more information about the dimension, for example whether it is a radius or a
diameter:
       • Prefix text is placed before the numeric value. Examples are R, DIA, and j.
       • Suffix text is a separate text element (type TDM) placed after the numeric value, for
          example the R and DIA texts in the ANSI dimensioning standard.
The Parametric Design system only uses the numeric value text when it calculates the new
dimensions of a component. You must replace this text with your own parameters. Prefix and
suffix texts are ignored when the dimension is evaluated and you can delete them if you want to
make the drawing clearer.
When the dimension is redrawn after parameterization, the dimensions appear in the style you
used originally. The value or expression you use to specify the new value does not affect the
final format, which will have prefix and suffix texts corresponding to the original drawing. For
example, you could replace a dimension of 25.0 DIA with the numeric value 40 (the DIA text
can be either ignored or deleted). After parameterization, the dimension appears as 40.0 DIA.
Parameterizing an Object
When you have placed all of the object points onto the parametric grid by dimensioning them,
and replaced some of the dimension texts with your own parameters, you are ready to parame-
terize the geometry.
Toolset
Please note: The format of dimension text on the parameterized drawing is the same as in the
             original drawing. Any prefix and suffix is retained and the original number of
             decimal places is displayed regardless of the format you gave when you supplied
             the new parameters.
Parameterization Errors
If the drawing is satisfactory, each part of it will be highlighted on the screen as it is processed.
If there is a problem then one or more error messages of text type TS1 or TR1 will be placed on
the sheet so that the datum point coincides with the point that is causing the problem. This
enables you to identify any problem points and to correct the drawing. If an error message
appears, you must diagnose the problem and correct it before proceeding.
Error messages are placed on layer 99. Figure 40 shows two of them.
         Figure 40   Error Messages
You will probably see the following two error messages frequently while you are learning to use
Parametric Design.
                              This message may appear when you use the tool Draws the grid
                              corresponding to the original drawing and undoes it . The reason is a
     No supporting grid(s)    point somewhere in the object which is not fixed to a grid
                              intersection. The datum of this error text is placed on the offending
                              point. This error is usually caused when, although you have
                              dimensioned a point, it is not at a grid intersection.
                              This message may appear when you use the tool Parameterizes the
                              geometry. The cause is an inaccurately dimensioned or completely
                              undimensioned point. Always investigate problem points by
     Point not dimensioned    zooming in to check that the dimensioning is accurate. You may
                              have to delete the dimensioning and draw it again. A typical cause
                              of inaccurate dimensioning is the failure to use near probes (where
                              they are required) when drawing a dimension construction line.
These are just two of the most common errors. A full list of possible error messages is given in
“Appendix B Error and Warning Messages” on page 217.
When you cancel a drawing grid or parameterization function immediately, any error messages
will disappear when you refresh the screen.
If you do not cancel the command, error messages are written onto the sheet permanently. To
remove them, delete the layer on which they are drawn, layer 99. Layer 99 contains grid lines
and error messages.
To delete permanent error messages:
      1. Open the dialog Parametric Layers (see ”Layers and Parametric Switches”, “Parametric
         Graphics Control” on page 111).
      2. Switch on the option Grid Lines and click left on the button Delete.
         The permanent grid lines are removed immediately.
This example shows you how to parameterize a rectangle using a prim of type DXY as the ref-
erence point. The master drawing can be used to produce rectangles of any given size.
      1. Draw a rectangle, as in Figure 41. The length of the sides is not important.
      2. Create a prim by choosing the tool DXY prim to act as a static reference point from the tooltray
         MEDUSA Parametric.
      3. Position the new prim on a corner point.
         The arms of the prim are aligned with the outline of the rectangle, so there is no need
         to rotate the prim into a better position.
        Figure 41    Example1: Rectangle with DXY Prim Reference Point
When the rectangle is parameterized, the corner point will remain fixed. The rectangle will grow
larger or smaller as the other three points are moved.
4. Create a viewbox using the tool Creates parametric viewbox lines or Creates parametric viewboxes.
      5. Choose the tool Draws the grid corresponding to the original drawing and undoes it .
         Figure 42 below shows what happens.
         Grid lines are drawn along any lines that coincide with the arms of the prim. In this
         case, two grid lines are drawn. The prim supports the two grid lines.
Please note: Notice that the grid lines are not permanent. If you refresh the screen by choosing
             the tool Refresh graphics   from the toolbar the grid lines disappear.
The rectangle is not adequately supported by the grid at the moment. Only the bottom left cor-
ner point lies at a grid intersection. Remember that the aim is to make sure that all points lie at
grid line intersections.
        6. Dimension two sides of the rectangle, one vertical and one horizontal.
        7. You can see how the grid develops by using the tool Draws the grid corresponding to the
           original drawing and undoes it each time you create a new dimension group.
           When the rectangle is adequately dimensioned, every point will lie at a grid
           intersection.
           If you see any error messages while you are creating the dimensioning refer to
           “Parameterization Errors” on page 51.
Please note: There is no message to tell you that the rectangle is adequately dimensioned and
             supported by the grid. It is up to you to decide for yourself. When you are satisfied
             that the grid is adequate, you can go on to replace the dimensions with new
             parameters.
Before specifying any new parameters, test the drawing to make sure it can be parameterized
using the tool Parameterizes the geometry then immediately undoes  . If an error message appears, you
must diagnose the problem and correct it before proceeding. See “Parameterization Errors” on
page 51 for a description of some possible errors.
       8. Choose the tool Parameterizes the geometry then immediately undoes    .
          You should not get any error message in order to be sure that you can parameterize
          the drawing.
      9. Replace the dimension text values with your own values by clicking on a dimension
         and then replace the value in the text edit field below the dashboard.
      10.Now choose the tool Parameterizes the geometry then immediately undoes .
        The rectangle is redrawn with the points moved to represent the desired geometry. The
        result is shown in Figure 44 below.
         Figure 44   After Parameterization
Please note: Notice that every point has moved except for the fixed reference point. This
             transformation is only temporary. If you redraw the screen, the rectangle will be
             drawn in its original shape, but with the most recent set of dimension values. If the
             new shape is not quite what you want, you can change the dimension texts, and
             then try again.
      11.When you are happy with the result you can make the transformation permanent
        using the tool Parameterizes the geometry .
In this example, you will parameterize the rectangle you created in the last example again. This
time the reference point is fixed by a pair of intersecting static baselines rather than a prim. If an
error message appears during this example, refer to “Parameterization Errors” on page 51.
        1. Draw a rectangle with center lines.
      2. Add two baselines, line style Static Base Line, line type LBL, which intersect at the center
         of the rectangle by choosing the tool Creates static base lines . Use the end points of the
         center lines as points for the base lines.
         Figure 45   Example2: Rectangle with Intersecting Baselines
         The intersection of the baselines is the reference point. This does not coincide with a
         point on the object geometry. This position is used to calculate how far to move the
         other points during parameterization.
Please note: Notice that the ends of the baselines extend beyond the rectangle. This is
             important. Never draw a static baseline that ends on an existing line. If you do so,
             the line will be fixed in its present position and this may create problems when you
             try to parameterize the drawing.
7. Create a viewbox using the tool Creates parametric viewbox lines or Creates parametric viewboxes.
      8. Choose the tool Draws the grid corresponding to the original drawing and undoes it .
         You can see two STK type grid lines, one horizontal and one vertical. However, there
         are in fact six grid lines. Each baseline supports three grid lines: one along its length,
         and two at the ends of the line, perpendicular to it.
Please note: Notice that the grid lines are not permanent. If you refresh the screen by choosing
             the tool Refresh graphics   from the toolbar the grid lines disappear.
Grid lines are drawn using a tolerance which is automatically set to 0.1 mm. Since the grid lines
at the ends of the static baselines are only 0.1 mm long it is very difficult to see them. You can
see them more clearly by changing the grid tolerance.
       9. Open the dialog Parametric Switches by choosing the tool Displays the current settings of the
          parametrics system.
       10.Increase the Grid Tolerance by typing 3.
       11.Choose the button Apply.
       12.Choose the tool Draws the grid corresponding to the original drawing and undoes it .
          The result is shown in Figure 46. You can clearly see six grid lines now.
Please note: Normally, you should never change the grid tolerance setting. If you do, you may
             find that grid lines are being drawn through the wrong points, and that your
             drawing will not parameterize.
             Changing the grid tolerance is used here because it helps to illustrate how grid
             lines are built up.
             Do not forget to return the grid tolerance to its normal setting.
Please note: Note that it is essential to use chain dimensioning as other dimensioning methods
             such as datum dimensioning do not recognize the center support provided by the
             horizontal grid line (see ”Dimensioning”, “Center Support” on page 32).
      14.Choose the tool Draws the grid corresponding to the original drawing and undoes it to display
        the grid after every new dimensioning group. Each new dimensioning group creates
        new grid lines, which in turn support more grid lines.
        Every point in the rectangle now lies at a grid line intersection. The next step is to test
        your drawing.
       Remember that the reference point is the center of the rectangle, where the baselines
       cross. Every point has been moved, but the center of the rectangle remains in the
       same position on the sheet.
     18.At this stage there are two things you can do.
       a. Permanent parameterization
          If you are happy with the result you can make the transformation permanent using
          the tool Parameterizes the geometry .
          This permanently transforms the geometry, and you can then save the sheet.
       b. Restoring the original geometry
          If you wish to continue parameterizing the rectangle, refresh the screen and the
          original rectangle will be restored. The dimension values are always the last set of
          values that you supplied.
This chapter contains three worked examples. Each example illustrates the use of a different
kind of dimension, chain, radial and angular.
Before working through the examples you should read the section on ”Getting Started”, “Exam-
ining the Parametric Grid” on page 48 explaining how to examine the grid. This introduces a
very useful diagnostic routine you can use to find out what is wrong with a drawing that has pro-
duced an error message.
• Example Three......................................................................... 71
Example One
Draw the component shown in Figure 49. Do not dimension the drawing yet. Draw the vertical
dashed line using any suitable line type, such as L1 or L6.
         Figure 49    Component to be Drawn
Add the intersecting baselines. Notice that the horizontal baseline lies along the line of symme-
try. As you will see in a moment, this enables three chain dimensions to be supported. Use the
tool Draws the grid corresponding to the original drawing and undoes it to look at the grid. At this stage,
grid lines are drawn only along the baselines. You will build up the grid by dimensioning the
points in the object.
         Figure 50    Displaying the Grid
What would happen if you tried to parameterize the drawing at this stage? Try it for yourself.
Refresh the screen using Refresh Graphics       from the toolbar and then select the tool Parameterizes
the geometry then immediately undoes . You will find that the error message Point not dimen-
sioned is written on the sheet beside every point that is not at a grid intersection. Remove all
the error messages with Refresh Graphics     .
Dimension the component as shown in Figure 49, “Component to be Drawn” on page 64, using
chain dimensions for the diameters. Add the dimension groups in the order indicated below.
First stage: Add the diameter dimension shown in Figure 51. This is supported by the horizon-
tal baseline, because the baseline passes through its center. It is essential that you use chain
and not datum or coordinate dimensioning for the diameter dimensions so that they can pick up
the center support from the horizontal baseline.
         Figure 51    Addition of First Chain Dimension
Each time you add a new dimension, use the tool Draws the grid corresponding to the original drawing and
undoes it  to see how the grid is developing. At this stage, only two of the points lie at grid inter-
sections when you draw the grid.
Second stage: Add the 8.0 and 12.0 mm dimensions, as in Figure 52. You can use any dimen-
sion type, for example datum. When you draw the grid you will see that grid lines are drawn
along the leader lines of the dimensions and continue along other collinear lines.
         Figure 52    Adding More Dimensions
When you display the grid, you will see that the dashed line helps to extend the grid. The grid
line drawn along the leader lines of the 8.0 mm dimension extends along the dashed line and
through any collinear points. The dashed line enables this grid line to extend to the collinear
point on the other side of the component. Without the dashed line, you have to add a second
8.0 mm dimension.
Third stage: Add the 44.0 mm chain dimension and then the two diameter dimensions, as
shown in Figure 53. You can use any dimension type for the 44.0 mm dimension but you must
use a chain dimension for the 50.0 mm and 76.0 mm diameters. This ensures that the horizon-
tal baseline running through the center of the dimension supports the new dimensions on the
grid.
         Figure 53   Fully Dimensioned Component
When you draw the grid, as in Figure 54, you will see that grid lines have been added along the
angled edges of the component. These grid lines have been added automatically by the sys-
tem. The grid is now complete, and every point lies at a grid intersection.
         Figure 54   Complete Parametric Grid
If you wish, you can now use the procedure on ”Getting Started”, “Building the Parametric Grid”
on page 46 to draw the grid one step at a time.
Use the tool Parameterizes the geometry then immediately undoes to test the drawing. If there are no
problems, each part of the drawing will be redrawn as it is processed. Error messages will be
displayed at the offending points if the system cannot parameterize the drawing. You may see
one of the following messages written on the sheet near to the point that is causing the problem:
         No solution possible
         Point not dimensioned
If you see one of these error messages, use the tool Parameterizes the geometry then immediately undoes
     (see ”Getting Started”, “Parameterizing an Object” on page 50) to investigate which dimen-
sion is causing a problem.
Replace the dimension texts with the new values shown below in Figure 55. Leave out the DIA
text (or the diameter symbol) when you give a new value to the diameter dimensions: these
extra texts are not required to calculate the new geometry.
         Figure 55    Old Component With New Parameters
Now choose the tool Parameterizes the geometry then immediately undoes . The result is shown in
Figure 56. If you are happy with the new component, parameterize it permanently using the tool
Parameterizes the geometry and then save the sheet.
         Figure 56    Parameterized Component
Example Two
Please note: The fillets have to be changed to tangent point arcs (tool Convert the selected circular
             arc into a tangent point arc in the tooltray Lines + Edit) because they are circular arcs,
             which is the default for fillets.
       2. Add static baselines, which should intersect at the center of the object.
       3. Dimension the component.
          Use chain dimensions to ensure center support from the horizontal baseline.
          For the circle use the tool Dimensions the diameters of circles and holes.
          Instead of dimensioning the fillets individually, use an in-sheet PARFIL command to set
          fillets to 8.0 mm:
       4. Choose the text tool Creates free parametric command text.
          Below the dashboard the text edit field opens.
       5. Type the text you want to place as command on the sheet:
               e.g. PARFIL 8
       6. Place the text on the sheet.
       7. Choose the tool Draws the grid corresponding to the original drawing and undoes it   for looking at
          the grid.
          Every point in the drawing now lies at a grid intersection (Figure 58).
         If you have any problems then refer to ”Getting Started”, “Example 1: Using a Prim” on
         page 53 or “Appendix B Error and Warning Messages” on page 217.
         Figure 58    Displaying the Grid
         Notice that small grid lines are drawn over the arcs of the fillets, as shown in the
         detailed illustration in Figure 59. The end points of the fillets lie at grid intersections
         because the ends of the arcs intersect with the straight grid lines.
         Figure 59    Detail Showing Fillet Grid Lines
If you have tested the drawing with the tool Parameterizes the geometry then immediately undoes     and
there are no problems, you can go ahead and replace the dimension texts with new values.
       8. Choose the tool Sets options for fillet behavior during parameterization for opening the dialog
          Parametric Filleting (see ”Dimensioning”, “Dialog PAR VAR Setting” on page 30).
       9. Set the options and values you want to use and Apply your settings.
       10.Use again the tool Parameterizes the geometry then immediately undoes      to parameterize the
          drawing.
          You can continue parameterizing the component by refreshing the screen and
          replacing the dimension texts with new values.
Dimension Format
The format of dimension text on the parameterized drawing is the same as in the original dra-
wing. For example, the affixes j, R, and DIA are retained, and the original number of decimal
places are displayed regardless of the format you gave when you supplied the new parameters.
Example Three
Draw the object shown in Figure 60. The angle of the notch is not important, but the notch must
be symmetrical about the horizontal center baseline. In this case the angle is 75.5 degrees. If
the notch was not symmetrical about the horizontal baseline, you would have to dimension it as
two separate angles.
         Figure 60    Object With Angular Notch
Adding dimensions
Add the 50.0 mm diameter dimension and the 10.0 mm chain dimension and then draw the grid
as shown in Figure 61 using the tool Draws the grid corresponding to the original drawing and undoes it .
         Figure 61    Result of drawing the grid
Figure 61 shows that the grid is still incomplete. All points must be at grid intersections. To make
the circular grid line cross the gap in the object circumference caused by the angled notch, add
a line as shown in Figure 62 across the notch (any line type will do).
Draw the grid again and you will see that the grid line created by the diameter dimension now
runs in an uninterrupted circle around the circumference of the object. Finally, place the angled
sides of the notch on the grid by dimensioning the angle. When you display the grid with the tool
Draws the grid corresponding to the original drawing and undoes it , as in Figure 63, you will see that every
point now lies at a grid intersection.
          Figure 63    Dimensioned Angle With Grid
Test the drawing with the tool Parameterizes the geometry then immediately undoes . If there are no
errors, you can now change any of the dimensions and parameterize the object. If you change
the angle, the notch will be redrawn with the specified angle. As the original notch was symmet-
rical about the baseline, the new notch will also be symmetrical. Try it for yourself. When you
change the text of an angle dimension, it does not matter if you miss out the degree sign: Para-
metric Design does not need it, and it will replace it for you anyway in the new dimension.
If you wish, draw the grid one step at a time to see how it was built up using the procedure in
”Getting Started”, “Examining the Parametric Grid” on page 48. Notice that the angled grid lines
drawn on the notch are supported by the vertical grid line 10 mm from the circle center.
If the notch was not symmetrical about the horizontal baseline, you would have to dimension it
in a slightly different way, as shown in Figure 64. Here, the angle is treated as two separate
angles, each dimensioned from the horizontal baseline.
        Figure 64   Dimensioning an Unsymmetrical Angle
GEOMETRIC CONSTRAINTS
This chapter shows how certain properties of object geometry, such as tangency or perpendicu-
larity, are preserved during parameterization.
• Baselines ................................................................................. 78
• Example Three......................................................................... 86
Geometric constraints are automatically inferred by the Parametric Design system to ensure
that certain properties of the original geometry are preserved when you parameterize a drawing.
For example, a tangent line remains tangential and a perpendicular line remains perpendicular.
Figure 65 shows a simplified diagram of a bicycle chainset. The chainset consists of a large
sprocket, a small sprocket and a chain that fits tightly around them. The chain is constructed
from two separate line segments, each drawn tangential to the sprockets. To parameterize the
drawing, you would begin by dimensioning the diameter of each sprocket and the distance
between them. The chain is not dimensioned in any way.
        Figure 65   Simplified Diagram of a Bicycle Chainset
You may want to change the size of the sprockets or the distance between them. The chain, of
course, should always remain tangential to the sprockets. Parametric Design automatically
ensures this whenever you parameterize the drawing. All you have to do is to dimension the
drawing in the usual way.
If geometric constraints are applied automatically by the system, how do you know what con-
straints will be applied? The answer is to look at the current geometric constraints either with
the tool Draws baselines inferred when the baseline switch is on or the PAR GRIS BAS Bacis1 com-
mand (which is explained in the Parametrics Reference Guide, chapter “Geometric constraints“,
section “Automatically Inferred Constraints“).
The tool Draws baselines inferred when the baseline switch is on draws a dynamic baseline on top of
any lines in the drawing where constraints have been automatically inferred from the geometry.
These lines are chain lines of type LBL and are placed on layer 16. The point functions at the
ends of the baselines indicate how the geometry is constrained when the drawing is parameter-
ized.
The automatically inferred baselines are drawn permanently. For parameterization these lines
can be kept (see “Faster Parameterization by Dynamic Baselines” on page 79) but you also can
delete them, see below.
Dynamic baselines are drawn only to help you to understand how the drawing is constrained
during parameterization. You do not need to leave them on the sheet once you have found out
where constraints have been inferred.
For deleting inferred baselines,
      1. Open the dialog Parametric Layers (see ”Layers and Parametric Switches”, “Parametric
         Graphics Control” on page 111).
      2. Switch on the option Inferred Baselines.
      3. Click left on the button Delete.
         The inferred baselines are removed immediately.
Baselines
Every point in a baseline has a particular function that determines the way in which the line is
constrained during parameterization.
The point functions shown below have special meaning in Parametric Design.
                           FUNV      Symbol      Point function
0 Static point
10 Perpendicular point
11 Intersection point
12 Tangent point
A baseline point with any of the point functions listed in the table above moves according to a
particular geometric constraint during parameterization. For example, if the end of a baseline
has point function FUNV11, that line segment remains fixed to a particular point or intersection
throughout parameterization. If a baseline segment has point function 10, the line segment will
remain perpendicular.
Static Baselines
A static baseline is a baseline with a FUNV0 point function at each end. A FUNV0 point does
not move during parameterization. Static baselines remain in the same position on the sheet
when you parameterize a drawing, regardless of how the object geometry changes.
Static baselines can be drawn anywhere within the viewbox and are used to support the para-
metric grid.
Dynamic baselines are constructed along existing lines and must be supported on the grid.
Leaving any dynamic baselines created with the tool Draws baselines inferred when the baseline switch is
on     in the master drawing can speed up parameterization. Parametric Design automatically
looks to see where it can infer geometric constraints before parameterizing geometry. If you use
dynamic baselines to specify explicitly any constraints that you need, you can then tell Paramet-
ric Design not to infer any constraints automatically. The system does not then spend any time
trying to infer constraints from the geometry.
You use the PAR BAS switch to switch automatic inference of geometric constraints ON and
OFF. If you want to leave baselines in the drawing, use the following procedure:
      1. Create a master drawing and test it to make sure it can be parameterized.
      2. Use the tool Draws baselines inferred when the baseline switch is on to add dynamic baselines
         where constraints may be inferred.
      3. Save the sheet.
      4. Set the parametric switch PAR BAS to OFF.
         You can do this interactively or using an in-sheet command.
      5. Parameterize the drawing.
The PAR BAS switch controls whether geometric constraints are inferred automatically or not.
When PAR BAS is OFF, constraints are not automatically inferred, so you need to specify them
explicitly. When PAR BAS is ON, constraints are inferred automatically from the object geome-
try.
You can change the current PAR BAS setting by giving an in-sheet PAR BAS ON or OFF com-
mand or in the appropriate dialog, see ”Layers and Parametric Switches”, “Parametric Switches
and Command Texts” on page 112.
PAR BAS is ON by default. For more information on the PAR BAS switch refer to the MEDUSA
Parametric Design Reference Guide.
Normally Parametric Design calculates for itself which geometric properties need to be main-
tained. When the drawing is parameterized, lines such as tangents and perpendiculars are
adjusted automatically. Most of the time, therefore, geometric constraints are deduced for you.
If you want to impose additional limitations on geometry you can also add dynamic baselines to
a drawing manually. This may be necessary,
       • when insufficient baselines are inferred automatically
       • when you want to constrain a component or mechanism in a particular way, for
         example to force one end to remain static with the other end linked to a point which
         moves.
To create a dynamic baseline:
      1. Choose the tool Creates static baselines  .
         The dialog Parametric Point Function opens. All entries are deactivated until you have
         placed the first point of the line.
      2. Place the first point of the baseline.
         The point functions in the dialog are activated.
         Figure 66   Dialog Parametric Point Function, activated
Example One
This example shows how you can use tool Draws baselines inferred when the baseline switch is on to
display constraints inferred by the system. These are constraints of intersection, perpendicular-
ity, and tangency.
Draw and dimension the object in Figure 67. Make sure that the angled line segment and the
horizontal line segment are both tangential to the arc.
         Figure 67     Object to be Parameterized
Looking at Constraints
Now draw the parametric grid using the tool Draws the grid corresponding to the original drawing and undoes
it   . This example might look quite ordinary but something special has happened. Refresh the
screen with Refresh Graphics  and then use the tool Draws baselines inferred when the baseline switch is on
    to see which line segments are being constrained automatically.
         Figure 68     Inferred Baselines
Figure 68 gives you an idea of what you will see. The outline of the component has been drawn
using a dashed line so that you can see the dynamic baselines more clearly and the point func-
tions have been labelled. Two LBL lines are drawn over the line segments that will be con-
strained automatically when you parameterize the component. The end of each line is marked
with a special point function. The end with the FUNV12 point function is a tangent point, and the
ends with FUNV11 point functions are intersection points. The end with a FUNV10 point func-
tion will remain perpendicular to the vertical edge of the component.
You can see the dynamic baselines and their point functions more clearly if you clear the screen
and then draw just the layer 16 (Parametrics - automatically generated baselines) containing the baselines:
The important feature of this example is that you can change the arc radius or the horizontal
dimension, but the angled straight segment will remain tangential to the arc, and the horizontal
line will remain perpendicular to the intersection point. If you wish, you can now delete the
dynamic baselines.
Test the drawing with the tool Parameterizes the geometry then immediately undoes . If there are no
problems, parameterize it with a new set of parameters. Figure 69 shows the drawing after it
has been parameterized with the arc radius set to 12.5 mm.
         Figure 69    Object with New Set of Dimensions
Example Two
This example shows how the system infers tangency constraints on a component.
Draw the component shown in Figure 70 in a horizontal position and then rotate it. Add static
baselines but do not dimension the component yet. All straight segments are tangents.
         Figure 70   Object to be Parameterized
To dimension the object, first add the 44 mm chain dimension. This is symmetrical about one of
the baselines. The center of each small arc lies now lies at a grid intersection. Add the two
diameter dimensions and then dimension the arcs. When the drawing is fully dimensioned,
draw the parametric grid. The result is shown in Figure 71.
If you look closely at the drawing you will see that four grid lines have been added automatically
where there is no dimensioning. These are the four straight segments forming the outline of the
component. Each straight segment is tangential to an arc at both ends.
Looking at Constraints
When you run the tool Draws baselines inferred when the baseline switch is on , a dynamic baseline is
drawn over each part of the drawing that is to be constrained automatically by the system. The
added lines are shown in Figure 72. The dimensioning and static baselines have been removed
here and the outline of the component is shown as a dashed line so that you can see the
dynamic baselines more clearly.
         Figure 72   Inferred Baselines
You can see four LBL lines have been drawn over those line segments constrained to remain
tangential during parameterization. The end of each line has a FUNV12 point function. When
this object is parameterized, the four line segments indicated by the dynamic baselines will
always remain tangential to the arcs.
You can see the dynamic baselines and their point functions more clearly if you clear the screen
and then draw just the layer 16 (Parametrics - automatically generated baselines) containing the baselines:
Use the tool Parameterizes the geometry then immediately undoes to test the drawing then change
some of the dimensions and parameterize the object. Note how the straight line segments
always remain tangential to the arcs.
Example Three
This example shows how the system infers intersection and tangency constraints on a compo-
nent.
Draw the component in Figure 73 in a horizontal position using the hints given below. Add the
static baselines but not the dimensions, and then rotate the component through an arbitrary
angle to avoid restrictions imposed by special cases.
         Figure 73   Object to be Parameterized
Add two supporting lines to place the fillet arcs on the grid, as shown in Figure 74. These can be
any line type. When you have done this, draw the grid, as shown in Figure 75.
         Figure 74   Detail of Fillet Construction from Component in Figure 73
First step: Add the 35.0 mm radial dimension then draw the grid. Notice how grid lines extend
along the arc to the tangent points. Next dimension the distance between the reference point
and the intersection point between the baseline and the base of the component (64.0 mm). Add
the two parallel chain dimensions across the base of the component. Notice that the 25.0 mm
dimension places the fillet tangent points on the grid.
Second step: Next add the 12.0 mm parallel chain dimension. This creates three extra grid
lines, not just one. These extra grid lines linking the fillet tangent points to tangent points on the
large arc have been inferred automatically.
Finally, place an in-sheet PAR FIL command inside the viewbox to set the fillet dimension val-
ues to 5 mm. The grid for the fully dimensioned component is shown in Figure 76 and a more
detailed view of the fillets is shown in Figure 77.
         Figure 76   Fully Dimensioned Drawing With Grid
Looking at Constraints
Now you can use the tool Draws baselines inferred when the baseline switch is on to see what infer-
ences have been made from the object geometry. Figure 78 shows where dynamic baselines
are drawn. In this example, two baselines are added. Both have an intersection point function
(FUNV11) at one end and a tangent point function (FUNV12) at the other. When you parameter-
ize the drawing, these line segments may move, but the FUNV12 points will remain tangential to
the large arc, and the FUNV11 points will be tied to intersection point on the base of the compo-
nent.
         Figure 78    Dynamic Baselines
You can see the dynamic baselines and their point functions more clearly if you clear the screen
and then draw just the layer 16 (Parametrics - automatically generated baselines) containing the baselines:
Delete the dynamic baselines if you wish, then test the drawing with the tool Parameterizes the geom-
etry then immediately undoes . Now experiment by changing the dimensions and parameterizing
the object. Figure 79 shows one possible result.
         Figure 79   After Parameterization
This chapter describes how to replace values in dimensions with variable parameters.
MEDUSA Parametric Design calculates the value of any variables during parameterization and
changes the object dimensions to reflect the new values.
• Values in Dimensions............................................................... 92
• Variables .................................................................................. 94
Values in Dimensions
So far, whenever you have prepared a drawing for a parametric operation, you have changed its
dimensions from one set of numbers to another. One of the most useful features of Parametric
Design is that you can use variables such as WIDTH or DIAM and expressions instead of partic-
ular values.
Variables
Figure 80 shows a drawing of a joist section. Using variables to define the dimensions enables
you to scale the section to whatever size you require. Each time you parameterize the drawing,
you can give the variables a different value.
        Figure 80   Use of Variables in Joist Definition
Figure 81 shows some joist sections which are the result of parameterizing the drawing shown
in Figure 80. A LET command was used to give different values to the following variables each
time:
      • D (section depth)
      • B (section width)
      •   S (web thickness)
      •   T (flange thickness)
      •   R (root radius)
      •   V (toe radius)
          Figure 81   Result of Changing Joist Dimension Variables
Expressions
Expressions are particularly useful when you want to scale a component. Using expressions
you can specify relationships between dimensions within the same drawing. For example, if the
width of a component always needs to be half of the length, you could replace the length dimen-
sion value with the variable LENGTH and the width dimension value with the expression
(LENGTH/2).
In Figure 80, “Use of Variables in Joist Definition” on page 92, the expression (B + S) / 2 is
used to locate the mid-flange position. Whenever this drawing is parameterized, the mid-flange
dimension value is derived by adding the current values for the width of the section (B) and the
web thickness (S) and dividing the result by two.
Variables
When you have dimensioned your drawing in the usual way and checked that the drawing can
be parameterized you can replace any of the dimension text with variable names.
It is not necessary to change all dimensions to variables. You can leave some as numerical val-
ues. For example, if a number of components differ only in diameter, change the dimension text
for the diameter to the variable name DIAM, and leave all other dimensions as numbers.
After Parameterization
After parameterization all parametric dimension variable names and expressions are evaluated
and replaced by their numeric values. By selecting the Refresh Graphics tool  , you can restore
the original shape of the drawing and dimension variable names and expressions are also
restored. If you do not cancel the parameterization, these variables and expressions are perma-
nently changed into values.
If you use a variable to define a radius dimension, do not use variable names that begin with the
letter R and are followed by a number, for example, R15. If you do, Parametric Design assumes
this is a radial dimension with prefix text and interprets these ambiguous texts as values during
parameterization. When this happens, the following warning message is displayed on the sheet:
         Warning - ambiguous dimension texts interpreted as values
Example
Draw and dimension a rectangle, as in Figure 82. The size of the rectangle is not important.
Make sure the drawing can be parameterized by testing it with the tool Parameterizes the geometry
then immediately undoes .
         Figure 82   Dimensioned Drawing
Before you can parameterize this drawing, you must assign values to the variables long and
short. This is described in the next section.
The advantage of using in-sheet commands is that they are stored with the sheet, so that, for
example, special parametric switch or layer settings are always used with a particular drawing.
In-sheet commands are executed when you run a parameterization tool, before the geometry is
parameterized.
In-sheet commands only affect the viewbox in which they are placed, so other viewboxes and
other sheets are not affected. After parameterization, all settings are restored to the values held
before parameterization.
You should always aim to use in-sheet commands rather than interactive commands when
working with Parametric Design.
When you parameterize the drawing using the tool Parameterizes the geometry then immediately undoes
   , the rectangle is redrawn using the dimensions you have specified in the in-sheet command
texts.
Please note: LCIS variables are available for the current MEDUSA session only. In the next
             session you have to define them new. For saving LCIS variables use the Bacis1
             mode.
Please note: Value can be either an integer or a floating point value. Expressions are not
             allowed.
You can query any LCIS variable. Additionally to the variables you defined, many system vari-
ables can be queried.
For querying or modifying LCIS variables choose the tool Query and modify LCIS variables.
The following dialog opens.
Filter
            allows to pre-define the variables which are listed. You can type in any letter, number
            or special character available on your keyboard. If a variable name contains the Filter
            string than it is listed after choosing the button Filter. Wildcards like question mark (?) or
            asterisk (*) are not allowed. Same is with carriage return and space.
User, Protected, System
            allows to pre-define the variables which are listed. You can specify user defined,
            protected and system variables.
Value
            On the right hand side of Value there is the edit field displaying the value for the
            currently selected variable.
OK, Apply
            confirms the current values for the variables and now they are used in MEDUSA.
            Additionally OK closes the dialog. If you choose Apply the dialog remains open.
Filter
            This button updates the display of the variable list according to the defined pre-
            definitions.
Variables used inside a parametric sheet and its values can be saved with the sheet. For this
two tools are provided:
      • Administrating parametric variables scans the sheet for existing variables and values.
         Administration includes editing variables, defining title, picture and macro and saving
         all this information within the sheet (see ”Administration”).
      • Loading and updating variables allows to change variable values and save them within
         the sheet (see “Loading and Updating” on page 102).
Please note: The administration of variables can be done in Administration Mode only.
Administration
The tool Administrate parametric variables reads all the dimension variables available inside the
viewboxes of the current sheet. If there are none, an error message is given. Also the associ-
ated default values for the variables are read. If default values cannot be found, the appropriate
variable will be initialized with the standard value. All information is displayed inside a dialog.
         Figure 87   Dialog Administrate parametric variables
           After defining the variable name and setting the option (if required) press Add.
           The value will be defined directly inside the list of variables.
          If the option Allow string as value? was switched on, you can define expressions like this:
          length/2+val2, otherwise you can define integer or real values only.
Delete    delete a new parametric variable. Variables read from the sheet cannot be deleted.
Cancel    close the dialog without applying any dialog entries. Change you have made will be
          lost.
Having made all settings for the parametric variables of a sheet, choose Save the current sheet     in
the toolbar to save the table with the sheet.
Any user can display and update the values of parametric variables saved within a sheet.
Updated values can also be saved within the sheet.
Choose the tool Load and update parametric variables      to open the following dialog.
          Figure 89    Dialog Load and Update parametric variables
On top of the dialog the title and the picture (if defined) are given as defined by the Administra-
tor. Below this the list of variables is given with its information labels and values as saved within
the sheet.
You can edit variable values and save them in the sheet using the Save button.
For parameterization use the OK button. Consider that parameterization includes running the
macro, if defined by the Administrator. The Load parametric variables dialog will be closed.
Choose Undo        from the toolbar, if you want to test other settings. Consider that after parame-
terization you cannot open the Load parametric variables dialog until you have undone parameteriza-
tion. If also a macro has been run you have to press Undo twice.
An error message appears if you try to use a variable name without first having given it a value.
For example, if your drawing contains the variable WIDTH and you have not executed a com-
mand to set its value, such as LET WIDTH = 170, then the following error message is written
close to the appropriate dimension line when you try to parameterize the drawing:
         Undefined variable
Expressions
You can also turn dimension values into expressions. Instead of replacing dimension texts with
variable names such as DIAM or LENGTH, replace them with expressions containing variables,
for example:
        A+B*2+27
        (3.14*(RADIUS**2))
You must give the variable names A, B, and RADIUS values using one of the methods
described on “Rules for Creating Variable Names” on page 94. Expressions are particularly
useful for specifying relationships between different dimensions in the same drawing.
You create expressions using either LET or DEF. Use DEF to define an unevaluated expres-
sion. DEF is useful for defining expressions containing variables that are constantly changing.
For example, the expression (WIDTH/LENGTH)**2 contains variables which can change each
time the drawing is parameterized. To obtain the correct value, this expression must be evalu-
ated each time the object is parameterized, using the current values of the variables WIDTH
and LENGTH. Use single or double quotation marks to enclose an expression, for example:
        DEF WIDTH = 'LENGTH/2'
As with LET, you can use DEF both interactively and as an in-sheet command. Refer to the
MEDUSA Bacis1 Design Commands Guide for more information about LET and DEF.
Example
Using the drawing from the last example, replace the first LET command with a DEF command
that defines short as an expression, as shown in Figure 90. This command sets the value of
the variable short to one fifth of the value of the variable long.
        Figure 90   In-sheet DEF Command
Parameterize your drawing using different values for long and short. You will see that replac-
ing dimension text with expressions provides a useful mechanism for defining relationships
between different dimensions.
Arithmetic Operators
Logical Operators
You can also use a variety of logical operators to define conditions for parameterization. Details
of these operators can be found in the MEDUSA Bacis1 Guide. The MEDUSA Parametric
Design Reference Guide describes how you can use logical operators in the Parametric Design
system.
This chapter describes how you can change the way drawings are parameterized by changing
parametric switches and layer properties. Layers have properties that affect whether or not they
are drawn and whether elements on them can be changed.
Layers have properties that affect whether or not they are drawn and whether elements on them
can be changed. There are two properties that are used only in Parametric Design, transform-
able (TRN/UNTRN) and deleteable (UNDEL/DEL).
Layer Defaults
Elements created by Parametric Design are placed on the following layers by default:
              Layer      Element type
              4          Dimensioning, baselines
              13         Attachment points, instance groups
              14         In-sheet command text, table elements
              15         Parametric groups
              16         Automatically inferred baselines
              17         Special grid lines created by PAR GRIS COL, CIR, and TAN
              28         Viewbox lines
              56         Orthogonal 3D view prims
              99         Error messages, grid lines (type STK)
If you wish, you can change these layer defaults using the PAR DDL Bacis1 command. PAR
DDL is not covered in this book but it is described in the MEDUSA Parametric Design Refer-
ence Guide, chapter “Switches and Layers“, section “Changing Layer Properties“.
Layer Properties
There are 1024 layers, numbered from 0 through 1023. Each of these layers has five properties
which are listed below. The default setting for all layers is indicated using bold text:
      • Transformable or Untransformable (TRN/UNTRN)
      • Deletable or Undeletable (DEL/UNDEL)
      • Visible or Invisible (VIS/INVIS)
      • Hittable or Unhittable (HIT/UNHIT)
      • Protected or Unprotected (PRO/UNPRO)
You can use the Q LIS Bacis1 command to query the current layer properties.
Transformable/Untransformable (TRN/UNTRN)
Deletable/Undeletable (DEL/UNDEL)
Visible/Invisible (VIS/INVIS)
Hittable/Unhittable (HIT/UNHIT)
Protected/Unprotected (PRO/UNPRO)
Most layer properties like visible and hittable can be changed in the graphical user interface
using the menu Layers -> Layer Manager. Details on this are given in the MEDUSA Drafting Guide,
chapter “Layers“.
If you want to change the properties transformable and deleteable, use the Bacis1 LAY com-
mand.
You can use the LAY command both interactively and as an in-sheet command. It is advisable
to use in-sheet commands to change layer settings rather than entering the commands interac-
tively. This is because in-sheet commands are stored with the sheet, so that special layer set-
tings are always used with a particular drawing and do not affect any other sheets. Refer back
to ”Variables and Expressions”, “Creating in-sheet Commands” on page 96 for information
about creating in-sheet commands.
This tool is used to view, hide or delete parametric elements. For opening the dialog Parametric
               choose the tool Control visibility of parametric elements
Graphics Control                                                         from the tooltray Parametric.
           Figure 91    Dialog Parametric Graphics Control
In the bottom of this dialog the buttons Delete, View, Hide and View all work on the elements defined
by the selected option. Elements of the selected option are displayed highlighted in the drawing
area. If there are no elements for the chosen option, the buttons are deactivated.
The buttons delete, hide or view the following elements:
Dimensions
Instance named groups
Group Lines
           Option for elements of style Parametric Group Line created, for example, with the tool
           Creates parametric group lines (see ”Parametric Groups”, “Creating a Parametric Group”
           on page 162).
Viewboxes
DXY prims
Baseline
           Option for elements of style Static Base Line created, for example, with the tool Creates static
           base lines   (see ”Getting Started”, “Creating a Reference Point” on page 43).
In Sheet Command
Inferred Baseline
           Option for automatically created baselines which can be drawn with the tool Draws
           baselines inferred when the baseline switch is on, see section ”Getting Started”, “Building the
           Parametric Grid” on page 46.
3D view prims
           Option for 3D prims which can be used for parameterization, see ”Appendix A
           Parametric Design Element Defaults”, “Basic Parametric Elements” on page 214.
Attachment Points
Table Element
Grid lines
Errors
           Option for error message texts.
Parametric switches affect, for example, how grid lines are generated. You can define them glo-
bally for the MEDUSA session and you can create them as in-sheet command texts. The follow-
ing figure shows the toolset for setting parametric switches and command texts:
           Figure 92      Toolset for Switches
       Switch         Description
       PAR CIR        controls the generation of circular grid lines for all arcs. When the PAR CIR
                      switch is ON, complete circular grid lines are generated from arcs of circles in
                      the viewbox. Default setting is OFF.
       PAR LIM        makes grid lines either limited (ON, default) or unlimited (OFF). Unlimited grid
                      lines are limited only by the edges of the parametric viewbox.
       PAR MOV        When the PAR MOV switch is OFF, dimension texts are replaced by new
                      parameters but the original geometry is not transformed. If PAR MOV is OFF
                      when loading parametric symbols, the symbol will be loaded at the same
                      position it had in the definition sheet. Default setting is ON.
       PAR PRE        When the PAR PRE switch is OFF, dimensioning within parametric groups is
                      ignored and points move with the group. Default setting is ON.
       PAR TAN        When the PAR TAN switch is turned OFF, the tangent lines of tangent point
                      arcs are not used to create the potential grid. The default setting for PAR TAN
                      is ON because the tangential grid lines are almost always needed to place
                      the tangent points of tangent point arcs at grid intersections.
       PAR TEX        When PAR TEX is OFF, geometry is transformed according to the new
                      parameters in the dimension groups but the dimension texts display their
                      original values after parameterization. Default setting is ON.
       PAR UND        When PAR UND is ON (default), the original object definition is undrawn
                      when you parameterize. This is done before drawing the new object, so the
                      old component disappears before the new one is drawn. This switch is used
                      when simulating mechanical movement.
Creates parametric command text
          opens the dialog for placing the switches as in-sheet commands.
          Figure 94     Dialog Command Options
          From left to right the succession of switches is the same as it is in the dialog Parametric
          Switches from top to bottom. In the upper row you find the buttons for turning on
          switches and in the bottom row you turn switches off. Selecting one of the icons
          attaches the appropriate text to the cursor for placing it in the sheet.
Creates free parametric command text
           is the same as Creates parametric command text
                                                    but the text to place is free and not pre-
          defined. This tool works in the same way as other text tools from Text + Dimension
         tooltray. For an example of using this tool see ”Variables and Expressions”, “Creating
         in-sheet Commands” on page 96.
The following sub-sections explain some of the switches more detailed.
This switch controls the generation of grid lines along non-overlapping collinear line segments.
When PAR COL is ON, grid lines extend across non-overlapping collinear line segments when
you display the grid. You can change the setting for PAR COL by creating in-sheet command
text and placing it inside the same viewbox as your drawing. The default setting for PAR COL is
OFF.
         Figure 95   Collinear Points With PAR COL OFF
The object in Figure 95 has several non-overlapping collinear lines. With PAR COL set to OFF,
the grid lines extend only along the dimensioned line segments. To make the grid line extend to
the other collinear lines you would have to dimension each one individually.
         Figure 96   Collinear Points With PAR COL ON
Figure 96 above shows the grid with PAR COL set to ON. The grid lines span the gaps between
any points in the viewbox that are collinear. This gives a complete grid without having to add fur-
ther dimensions.
The PAR BAS switch controls whether geometric constraints are inferred automatically. When
PAR BAS is OFF, constraints are not automatically inferred, so you need to specify them explic-
itly. When PAR BAS is ON, constraints are inferred automatically from the object geometry.
Refer to ”Geometric Constraints”, “The PAR BAS Switch” on page 79 for information about how
to use PAR BAS to speed up parameterization.
This switch controls the generation of circular grid lines for all arcs. When the PAR CIR switch is
ON, complete circular grid lines are generated from arcs of circles in the viewbox when you dis-
play the grid. The default setting for PAR CIR is OFF.
The object in Figure 97 is dimensioned radially. When you draw the grid with PAR CIR set to
OFF, as shown, only the dimensioned arc is supported.
         Figure 97   Effect of PAR CIR OFF
Figure 98 shows what happens when the grid is drawn after an in-sheet PAR CIR ON command
has been added. A complete circular grid line is generated supporting the whole circle, and not
just the dimensioned arc.
         Figure 98   Effect of PAR CIR ON
The object shown in Figure 99 has been prepared for parameterization. The original dimension
values have been replaced with new parameters.
Figure 100 shows the result of a parameterization. Both the original and the parameterized ver-
sions of the object (complete with dimensioning) can be seen. The original object definition can
be removed by redrawing the graphical area.
        Figure 100   Original and Parameterized Versions
TABLES
This chapter shows how you can use tables to store one or more groups of values on a sheet
for subsequent during parameterization. A table is composed of a set of special elements.
Structure of a Table
Using a table you can assign values to several variables at once with a single TBL command.
Specifying a table row or column has the same effect as giving a LET command for each entry
in that row or column. Figure 101 shows the essential parts of a table.
         Figure 101    The Parts of a Table
Figure 102 shows the structure of table elements. The table outline and name text are part of a
group. The group containing the table outline and name text is a sheet element, as are the table
row and column texts and value texts.
          Figure 102   The Structure of Table Elements
Sheet
You also can put the value, row and column texts into the group with table title and outline in
order to keep the table together.
You can add lines to the table, for example to divide the rows and columns. These lines can be
of any type and are ignored when you give a TBL command. However, if the table is inside a
viewbox, you must make sure that any extra lines you create are placed on an untransformable
layer. This prevents Parametric Design trying to parameterize them along with the object geom-
etry.
Creating a Table
Procedure - Method1
Please note: If you place the table inside the viewbox of the geometry which shall be
             parameterized with this table, do not forget to specify the table outline
             untransformable with a layer command text like LAY 14 UNTRN otherwise you
             get error messages when parameterizing later on.
Procedure - Method2
The first row entry is selected and you can type in the rows name.
Table Values
Table values can be of any text type. Use either a MEDUSA 2D grid or construction lines to
place the table values in correct alignment with the row and column texts. If they are not
aligned, it may not be possible to separate the row and column entries when the drawing is
parameterized. If this happens, you will receive the following error message on the screen when
you try to parameterize the drawing:
         Cannot resolve table
Table values can be variables or expressions as well as simple numbers. For example, the table
in Figure 106 shows the values of variables B and C in row Row1 as expressions. Note that the
sequence of variables and expressions in a table is important.
         Figure 106    Table With Variables
                      A       B         C
          Row1        10     A+D       B/2
          Row2        20      30       40
The value of each variable used in a table refers to its value before the execution of the TBL
command and not to its value calculated during the execution of the TBL command.
If you include a table in a parametric symbol definition, you must save the geometry, the table
and the in-sheet TBL command together as part of the symbol definition. There is a worked
example in ”Symbols”, “Loading Parametric Symbols With Tables” on page 144 showing how to
load a parametric symbol definition using values from a table.
When you create a table you place object points on the sheet. If the table is inside a parametric
viewbox the points in the LTB line will be treated like any other point in the viewbox and Para-
metric Design will attempt to parameterize them. To prevent this, do one of the following:
      • Place the table outside the viewbox
      • Make the layer containing the table untransformable
You can place a table anywhere on the sheet. A table does not have to be in the same viewbox
as the in-sheet command which refers to it.
Untransformable layers are not affected by parameterization. Therefore, you do not have to
place elements on untransformable layers on the grid. When you start up MEDUSA, all layers
are transformable.
To make a table untransformable, use the following procedure:
     1. Find out what layer the table elements are on. If you created the table elements using
        the tools given in “Creating a Table” on page 120, they will be on layer 14.
     2. Create an in-sheet layer command making that layer untransformable, for example:
             LAY 14 UNTRN
         Make sure that there is nothing on this layer that you want to parameterize.
      3. Place the in-sheet command text somewhere inside the viewbox.
If necessary, refer back to ”Layers and Parametric Switches”, “Changing Layer Properties” on
page 110 for more information about changing layer properties.
You use the TBL command as an in-sheet command to access values in a table.
Please note: If you used “Procedure - Method2” on page 121 for creating tables, you already
             have the TBL command. It is at the upper right corner of the table.
Specifying a row or column of the table with a single TBL command is equivalent to giving a LET
command for each entry in that row or column.
      • When you specify a row name in the TBL command, the values for that row are
         assigned to the variables specified in the columns
      • When you specify a column name in the TBL command, the values for that column are
         assigned to the variables specified in the rows
Procedure
Please note: If you copy and paste a table on a sheet ensure that you use Recreate Structure from
             the popup menu while pasting in order to get the pasted table into its own group.
             Otherwise the pasted table is in the same group as its original which causes an
             error message when you parameterize it.
Example
The sheet shown below in Figure 107 has an in-sheet TBL command. When the sheet is
parameterized, the values from the first row of the table, r1, will be used for the dimension vari-
ables D1, D2 and D3.
         Figure 107   Example of an In-sheet TBL Command
Worked Example
This example shows how you can use a table to produce three parameterized versions of an
object.
Draw and dimension the object shown below in Figure 108 using the following guidelines:
     • The prim datum is positioned at the center of the arc
     • The dashed line across the arc ensures that the two collinear horizontal line segments
       are supported on the grid. Create the line with the tool Draws lines connecting all collinear
       straight lines . Make sure that the connecting line is on an untransformable layer
       before parameterization.
     • The horizontal 80.0 mm dimension must be a chain dimension in order to pick up the
       center support from the prim
         Figure 108   Original Component
When you have dimensioned the object, use tool Temporarily draws the grid corresponding to the current
drawing  to display the grid. The result is shown in Figure 109.
         Figure 109   Dimensioned Component With Grid
If there are no problems with the grid, test the drawing with the tool Parameterizes the geometry then
immediately undoes   . Correct any errors before continuing.
The next step is to change the dimension values to variables, as in Figure 110. It isn't necessary
to change all dimension values to variables, as in this example. If you want some dimensions to
remain constant then you can leave them as numeric values.
          Figure 110   Changing Dimension Values to Variables
Next, create the table shown in Figure 111 using the procedure described either in “Procedure -
Method1” on page 120 or in “Procedure - Method2” on page 121. If you intend to use tables fre-
quently, it is best to create a skeleton table and store it as a symbol. You can then load it into
any master drawing that requires a table.
          Figure 111   Table of Variable Values
The table is now complete, as shown in Figure 112. If you created the table using construction
lines, delete them before continuing. In a moment you will be able to parameterize the compo-
nent by selecting a particular row of values from the table. Before that, you must add some in-
sheet commands to the drawing.
Create the following in-sheet commands (text type TCO) and place them inside the viewbox:
                            This tells Parametric Design which row of dimensions to use. When you
  TBL table1 'ROW1'         run the tool Parameterizes the geometry then immediately undoes , the values
                            from ROW1 of the table named TABLE1 will be used. Note that ROW1 must
                            be enclosed in either double or single quotation marks.
                            This command prevents Parametric Design trying to parameterize the
                            outline of your table by making the layer containing the table boundary
  LAY 14 17 UNTRN           line (layer 14) untransformable. Layer 17 also contains the line you
                            added with the tool Draws lines connecting all collinear straight lines   .
Parameterize the component using the tool Parameterizes the geometry then immediately undoes . The
result is shown in Figure 113. The values from the first row, ROW1, of the table are used to cal-
culate the new dimensions.
Further Parameterization
Now parameterize the original drawing using the values in the second and third rows, ROW2 and
ROW3. You can do this by changing the in-sheet command to TBL table1 'ROW2' and TBL
table1 'ROW3' before running the tool Parameterizes the geometry then immediately undoes .
When you parameterize a drawing you can prepare the sheet so that unwanted elements are
deleted during parameterization, making the final drawing clearer. For example, in the compo-
nent you draw in the last example you could, if desired, delete the following elements during
parameterization:
      • All table elements, including table boundary line (LTB), name text (TTB), row and
         column text (TRC) and value texts
      • In-sheet commands
      • Extra lines you have added to develop the parametric grid
The existing in-sheet command on your sheet makes layer 14 untransformable. This ensures
that Parametric Design does not try to parameterize the table outline when you run the tool
Parameterizes the geometry then immediately undoes . To delete the whole table from the final drawing,
make the layer containing all of the table elements deleteable as well as untransformable. For
example:
         LAY 14 17 UNTRN DEL
Table values: Remember that table value texts, which can be any text type, will not be on the
same layer as the other table elements by default. You must place them on the same layer. An
easy way to do this is to place a group line around all the value texts then increment the layer
number of the group to make it the same as the other table elements.
Extra lines: Layer 17 contains the extra line added with the tool Draws lines connecting all collinear
straight lines . All extra lines must be made untransformable or Parametric Design will try to
parameterize them. You can then choose whether or not to delete additional lines from the fin-
ished drawing along with the table elements and in-sheet commands.
MEDUSA provides a tool for selecting a variant from a table and parameterize it.
These are the steps for using table values for parameterization:
     1. Load a sheet with tables used for parameterization.
        The tables have to be inside the viewbox (Figure 115, “Example for Variant
        Parameterization, Input” on page 132) otherwise variant parameterization does not
        work.
     2. Choose the tool Selects a variant from a table and parameterizes it .
        If there is no parametric table on the sheet an error message is given. Otherwise the
        following dialog opens:
        Figure 114   Dialog for Selecting a Table Variant
SYMBOLS
This chapter describes how to use parametric symbols. A parametric symbol is a a fully dimen-
sioned drawing, complete with reference point, stored in a symbol file. You can parameterize it
as you load it onto a MEDUSA sheet. You can load parametric symbols in one of two ways:
      • Interactively, by loading each symbol one-by-one onto a sheet
      • Automatically, by parameterizing a sheet containing CPI named groups. CPI named
         groups store information about parametric symbols. When you parameterize a sheet
         containing CPI named groups, Parametric Design automatically loads and
         parameterizes the required symbols.
You should already be familiar with storing and loading symbols in the 2D drafting system. Para-
metric symbols have to be prepared in a special way:
      • Before you save the symbol you must add attachment points, text type ATP, which are
         used to position the symbol on the master drawing
      • To load a parametric symbol onto the master drawing the tool Load parametric symbol   is
         available, which simultaneously loads and parameterizes a parametric symbol.
Attachment Points
So far, when preparing a drawing for parameterization, you have identified a datum or reference
point by placing a prim or static baselines on the object geometry. When you create a paramet-
ric symbol definition instead of static baselines or a prim you must use one or more attachment
points to specify a reference point.
An attachment point is a text of type ATP. This text consists of a variable name or an expression
that evaluates to a set of X and Y sheet coordinates.
Positioning the symbol using attachment points: When you load a parametric symbol, the
attachment points are used to position it on the new sheet. You can place more than one attach-
ment point in a parametric symbol definition.
With one attachment point, the symbol will be loaded at the same orientation as the original.
You can rotate it with the popup menu while loading, see “Popup Menu while Loading a Symbol”
on page 141.
If you use two attachment points, they can be moved relative to one another, for example to
rotate the symbol as it is loaded. If you want to do so consider that the whole symbol and its
dimensions have to be drawn with a orientation, which is neither horizontal nor vertical, other-
wise the symbol can be placed horizontal or vertical only.
Grid lines: Attachment points generate grid lines in the same way as other reference points.
Two grid lines are generated through the datum of the text, one horizontal and one vertical.
When you display the grid for the symbol geometry, grid lines are drawn along any lines which
pass horizontally or vertically through the attachment points.
If you have rotated the symbol and if you use more than one attachment point, grid lines are
created parallel to the dimension lines.
Once you have created the geometry and added attachment points, you must prepare the sym-
bol definition before saving it into a symbol file.
      7. To avoid the constraints caused by special cases, rotate the symbol complete with
          supporting lines before dimensioning. Make sure that no lines pass vertically or
          horizontally through the attachment points, or at angles of 30, 45, or 60 degrees.
      8. Dimension the geometry using the perpendicular and parallel kinds of chain
          dimensioning in case you need to rotate the symbol when you load it.
          Now your symbol should look like following:
         Figure 117   Attachment Points
      12.Define values for the variables if there are some and then click left on the sheet to
        place the first attachment point.
      13.If you use the example of Figure 117, “Attachment Points” on page 135, click left on
        the sheet to place the second attachment point.
        The symbol is placed. If it is not, correct any errors before going on.
Using a table you can load a parametric symbol at a number of positions on your sheet, each
time using a different set of parameters from the table.
The procedure of creating a symbol with a table is as follows:
      1. Draw the geometry and dimension it.
      2. Replace the dimension texts with variables.
      3. Create the table as explained in “Tables” on page 117.
      4. Create an in-sheet command for making the table outline, table elements and in-sheet
         commands associated with the symbol untransformable and for deleting them when
         you load the symbol:
             LAY 14 UNTRN DEL
         If you used the tool Creates a parametric table for creating the table, then this command is
         created automatically.
      5. Choose the selection tool Selects elements or groups at sheet level   .
     6. Select the geometry, the dimensions, the table and the in-sheet command.
     7. Save the selection as symbol using the tool Save named symbol   from the tooltray
        Creation Tools.
        Now you can load this parametric symbol as explained in “Loading Parametric
        Symbols With Tables” on page 144.
If you want to place parametric symbols, you first have to define the values for the variables.
Then, when placing the symbol, it is automatically parameterized.
Dialog
For loading a parametric symbol choose the tool Load parametric symbol          inside the tooltray Cre-
ation Tools. The following dialog opens:
Table
           opens a further dialog in which you can select the row whose values shall be used for
           parameterization. Table is only activated if you selected a symbol file with table
           definition. For details see “Loading Parametric Symbols With Tables” on page 144.
Attachment Points
           shows a list of attachment points defined for the symbol.
           If you see only one attachment point, it is used for placing the symbol.
           If you see more than one attachment point you can change the current point by clicking
           on a text inside the list. The selected attachment point is used for next probing on the
           sheet. After probing the next attachment point is displayed as selected inside the list
           and when probing next time the current attachment point is placed.
Options:
Display Dimensions
           shows the symbol, which is attached to the cursor, with applied parametric values and
           its dimensions.
Load Dimensions
           places the symbol with dimensions on the sheet.
Load if Errors
           places the symbol on the sheet also in case that parameterization with the defined
           values fails. If this option is off, you can see error messages only at the dimensions of
           the symbol attached to the cursor.
The buttons are:
Select  chooses the selected symbol with name Filename and displays its variables inside the
        dialog. The chosen symbol is attached to the cursor drawn in the manner as it was
        constructed, Now you can set values for the variables.
Scale   applies the set values to the symbol attached to the cursor. By default the attached
        symbol is displayed as it was constructed.
Close   undisplays the dialog. The symbol can be placed until you choose Exit Tool from the
        popup menu.
Procedure
        1. For loading a parametric symbol choose the tool Load parametric symbol     inside the
           tooltray Creation Tools.
           The dialog Load Parametric Symbol opens.
        2. Use the File Selector button to choose a symbol file.
        3. Click left on the button Select.
           The variables of the symbol and its attachment points are displayed.
        4. Type in the values for the variables.
      5. If you have more than one attachment point choose that point you want to place first.
         At the cursor the chosen attachment point is displayed.
         If you do not choose an attachment point the first one is used by default.
      6. Choose the button Scale.
         The symbol attached to the cursor changes according to the defined values.
      7. If you want to rotate or mirror the symbol before placing it, use the popup menu (see
         “Popup Menu while Loading a Symbol” on page 141).
      8. Place the symbol on the sheet.
         You can place the symbol as often as you want. You also can change the values of the
         variables and Scale the symbol again.
      9. If you finished placing parametric symbols choose Exit Tool from the popup menu.
Sometimes you may make a mistake when loading a parametric symbol. A common error is to
forget to give a value to a variable. If any problems arise, the unparameterized symbol at the
cursor gives the error messages.
         Figure 119   Example for Error Messages while Loading a Parametric Symbol
After you have fixed all errors, the variables are replaced by the values indicating that the sym-
bol now can be placed.
If you suspect that there is an error in the original drawing you saved as a symbol, you can
check this quite easily. Load the symbol into a blank area of your sheet using the tool Load named
symbol    and investigate the problem.
While the symbol is attached to the cursor you can manipulate the symbol. You can rotate, mir-
ror, revert rotation or mirroring and reselect for choosing a new symbol.
         Figure 120   Popup while Loading Parametric Symbol
Worked Example 1
This example shows how to load a parametric symbol using the tool Load parametric symbol .
Draw and dimension a rectangle, as in Figure 121. Notice that the reference point is marked
with an attachment point text, type ATP, which contains the variable name P1. Do not replace
the dimension texts with variables yet.
         Figure 121   Symbol Definition
Before you can use the tool Parameterizes the geometry then immediately undoes to check that you
have drawn and dimensioned the rectangle accurately, you must give the attachment point vari-
able a value.
      1. Choose the tool Creates free parametric command text   .
      2. Type the following command in the text edit field below the dashboard:
              LET P1 = 100 100
         With this the rectangle is placed at x=100 and y=100 on the sheet.
      3. Place the text anywhere on the sheet but inside the viewbox of the drawn geometry.
If you do not give the attachment point variable a value before running the tool Parameterizes the
geometry then immediately undoes , the error message Unset variable will be written onto the
screen near the variable.
When you display the grid you will see that the attachment point supports grid lines in the same
way as a prim. Grid lines are drawn horizontally and vertically through the attachment point.
You are now ready to load the symbol onto a new sheet.
      5. Choose the tool Load parametric symbol    inside the tooltray Creation Tools.
         The dialog Load parametric symbol opens.
      6. Choose File Selector from the dialog.
         Another dialog opens for selecting the symbol file to load. After selecting a file name
         the dialog closes and the selected file is displayed in the line Filename of the dialog Load
         parametric symbol.
      7. Choose the button Select.
         The dialog updates showing the variables of the selected symbol. In the bottom the
         attachment points are given. The symbol is attached to the cursor still showing the
         variable names.
      8. Specify the values for the variables.
      9. Choose Scale.
         The symbol attached to the cursor changes and displays the defined values now.
      10.Place the symbol on the sheet.
         Figure 122   Parametric Symbol Loaded Onto Sheet
      11.Now try loading the rectangle at different places on the sheet by moving the cursor to
        new locations.
        You can change the values but consider to choose Scale to apply the new values to the
        symbol before placement.
        If you want to rotate or mirror the symbol, use the popup menu.
For parametric symbol definitions which may have several sets of variables, you can include a
table of values in the symbol definition. When you include a table in a parametric symbol defini-
tion, make sure that you:
       • Include an in-sheet TBL command in the symbol definition
       • Make the table (frame and text) untransformable
       • Save the table and all in-sheet commands with the symbol geometry
You can delete the table and any in-sheet commands included in the symbol definition when
you load the symbol onto the new sheet.
Example
Using the tool Load parametric symbol , you can load the symbol in Figure 123 using the values
in the table. The only arguments you need to give are a datum position on the new sheet, and
the name of the row of values you wish to use.
First draw and dimension the object shown below in Figure 123. Change some or all dimen-
sions to variables. The original dimension values are not important as you will use the dimen-
sion values in the table when you load the symbol.
         Figure 123   Table as Part of a Parametric Symbol
When you have finished drawing the object, create the table of values. The table is detailed in
Figure 124. Refer back to ”Tables”, “Creating a Table” on page 120 to see how to create a table.
        Figure 124   Table
In-sheet TBL command: In “Tables” on page 117, you saw how to use an in-sheet TBL com-
mand such as TBL table1 'R1' to select a row from a table during parameterization. Every
time you load a symbol using an in-sheet command that refers to an explicit row in a table, the
new object dimensions will be taken from the same row. Replacing the row name in the TBL
command with a variable name enables you to select a different set of dimensions each time
you load the symbol.
When you want to place a row variable in a TBL command instead of specifying a row name,
you must place the variable name inside angled brackets (<... >). For example:
        TBL <row>
Using a variable is only needed when loading the symbol with Bacis1 commands. In the graphi-
cal user interface the command can remain unchanged because the row s selected in a dialog
when loading the symbol. You do not need to specify a table name in the TBL command in this
example because this is the only table on the sheet.
In-sheet layer command: You also need to add an in-sheet layer command to the symbol def-
inition to do the following:
       • Makes the table outline untransformable
       • Deletes the table elements and in-sheet commands associated with the symbol when
           you load the symbol onto the new sheet
For example, LAY 14 UNTRN DEL. See ”Tables”, “Deleting Elements During Parameterization”
on page 129 for more information about deleting table elements during parameterization.
When you have drawn the object and the table and added the in-sheet commands, you are
ready to save them all as a symbol. Make sure that you save the object, table, and in-sheet
commands but not the viewbox. For selecting use the tool Selects elements or groups at sheet level
otherwise you get errors when trying to load the symbol.
Now load the symbol. The following sequence shows how you might do this:
      1. Choose the tool Load parametric symbol     inside the tooltray Creation Tools.
         The dialog Load parametric symbol opens.
      2. Choose File Selector from the dialog.
         Another dialog opens for selecting the symbol file to load. After selecting a file name
         the dialog closes and the selected file is displayed in the line Filename of the dialog Load
         parametric symbol.
      3. Choose the button Select.
         The dialog updates showing the variables of the selected symbol. In the bottom the
         attachment points are given. The symbol is attached to the cursor still showing the
         variable names.
      4. Choose the button Table to specify the values for the variables from the table saved with
         the symbol.
         A further dialog opens providing the Table and the Table Records. With the options in
         Orientation you can display the specified values for rows or columns.
A CPI named group (CPI=Clump Parametrics Instance) is a special group that instructs Para-
metric Design to load and parameterize a parametric symbol at a specified point. By using CPI
named groups you can load and parameterize automatically several instances of the same
symbol on the sheet.
Toolset
      4. Create attachment point text of type SAT using the tool Creates SAT text within CPI named
         group     and place it on the sheet with a probe. Repeat this step for each attachment
         point text of the symbol.
      5. Move all CPI named group elements on an untransformable layer.
Please note: For each symbol you want to reference a separate CPI group has to exist.
             Do not forget arg in front of variable assignments.
The following example shows a reference with one attachment point and one variable.
         Figure 128   Example for a CPI named group
You must place a CPI named group at all points where you want to load a symbol. Each CPI
named group contains a number of texts, specifying the name, size, and position of each sym-
bol that is to be loaded. You need to create a separate CPI named group for each symbol
instance required. Each CPI named group contains all the information that is required to auto-
matically load a symbol.
You must dimension the symbol attachment points in each CPI named group to place them onto
grid intersections. Dimensioning the attachment points is critical, as the attachment point
datums must lie at grid intersections when the drawing is parameterized. Use the tool Parameter-
izes the geometry then immediately undoes to check that attachment points lie at grid intersections
after you have dimensioned them.
This section takes you step-by-step through an example which uses CPI named groups to load
three separate instances of a symbol onto a master drawing. You begin by drawing a gearbox
cover and then create a symbol representing a tab. After adding CPI named groups, you can
load and parameterize the tabs automatically. When you run the tool Parameterizes the geometry then
immediately undoes  , the gearbox cover itself will be parameterized, and then each tab will be
parameterized separately as it is loaded onto the master drawing.
Draw and dimension the gearbox cover shown in Figure 129 using a view prim as a reference
point. The base of the gearbox cover is horizontal, which prevents the base from being rotated
during parameterization. However, it is still possible to move other parts of the drawing.
When you have finished drawing the component, use the tool Draws the grid corresponding to the origi-
nal drawing and undoes it to display the grid.
Then test the drawing with the tool Parameterizes the geometry then immediately undoes   .
Do not proceed unless the drawing can be parameterized.
         Figure 129   Dimensioned Component
Change the dimensions to variables as shown in Figure 130. All the variables in this example
have been assigned values using in-sheet commands though you can use a table if you prefer.
See “Tables” on page 117, for information on how to create a table.
        Figure 130   Changing Dimensions to Variables
Please note: In all subsequent illustrations, the dimensioning and in-sheet commands shown in
             Figure 130 will be omitted. This is for the sake of clarity.
Add lines to the drawing to mark the positions where the tabs will be placed, as in Figure 131.
        Figure 131   Marking Positions of Tabs
The lines used here are type L6, but you can use any line type. Each line is drawn perpendicu-
lar to the outline of the gearbox cover. This is so that when the tabs are added, they will always
be perpendicular to the sides of the component. The length of each line determines the length
of the parameterized symbol. The lines can be any length that you want and placed anywhere
on one of the straight edges of the gearbox cover. In this example the dashed lines are drawn
approximately at the center of each straight edge.
It is useful to place these lines on the same layer as the CPI named group elements, so that
they can all be deleted together during parameterization.
The next step is to create the symbol for the tabs. Draw and dimension the tab shown below in
Figure 132. Remember to use the parallel or perpendicular kinds of chain dimensioning, rather
than the horizontal or vertical kinds. This allows the tab to be loaded at any orientation.
          Figure 132    Dimensioned Tab
Creating the fillets: Add the fillets after you have completed the outline of the component. The
fillets are tangent point fillets, created with the tool Convert the selected circular arc to a tangent point arc
      from the Lines+Edit tooltray. The size of the fillets is not really important because they will be
changed to whatever radius is required as you load them.
The important thing is to make sure that there are no coincident points in the drawing. If the end
point of a fillet coincides with another point, the two points will be locked together during param-
eterization. Sometimes you may want certain points to remain locked together. However, it is
usually better to create a master drawing that has no coincident points. Figure 133 shows
where to create the individual points for the fillets.
Adding attachment points: Add two attachment points variable texts, A and B as shown in
Figure 134 below. These are texts of type ATP and must be linked by a line of any line type.
Place the attachment points and the line linking them on the same layer so that you can delete
them easily when you load the symbol.
Adding an in-sheet command: Add an in-sheet command to delete unwanted elements dur-
ing parameterization, for example, LAY 4 14 DEL. This deletes the layers containing the
attachment point texts, linking line, and dimensioning.
         Figure 134   Tab Prepared for Saving
Testing the drawing: When you have drawn and dimensioned the symbol, test it with the tool
Parameterizes the geometry then immediately undoes . If this is successful, change the dimensions to
variables and then rotate the whole symbol through an arbitrary angle, as in Figure 134.
You are almost ready to save the symbol. If you save the in-sheet command with the symbol,
ensure that the layer containing in-sheet commands is deleted during parameterization.
Having created the tab symbol, you must now create a CPI named group at every position
where the tab is to be loaded as shown in Figure 135. The sequence required to create one CPI
named group is given below. Figure 136 shows one of the CPI named groups in detail.
         Figure 135   CPI named Groups in Position
Creating a CPI group: First, open a new CPI group using the tool Creates a CPI named group for load-
ing parametric symbols .
Creating SPS text: Then create a new text of type SPS using the tool Creates SPS text within CPI
named group . The SPS text must be part of the CPI group. Enter the symbol file name into the
text edit field below the dashboard and then place the text on the sheet with a probe. For clarity,
it is best to position the text near to where the symbol will be loaded, although the exact position
of the SPS text is not important. If the symbol is in the same directory as the sheet, no path
need to be given. If you have a sub-directory for symbols, only the sub-path needs to be speci-
fied, but you also can define the complete path. For example:
         symbols\gearboxtab.sym
Creating SAT texts: Now create two SAT texts for the attachment points A and B using the tool
Creates SAT text within CPI named group . Make sure that these texts are part of the CPI group by
making the SPS text created previously current before you create the new texts. Type the
attachment point variable names into the text edit field and then place them at the ends of the
dashed line (see Figure 136, “Detail of CPI named Group” on page 154).
Creating SCO texts: Finally, create four SCO texts using the tool Creates SCO text within CPI named
group   . These texts contain ARG commands which assign values to the symbol variables.
The exact position of these texts is not important, but they must be part of the CPI group. Make
sure that you end the group when you have finished. For example:
         ARG   diam =   8
         ARG   radius   = 8
         ARG   fillet   = 4
         ARG   len1 =   5
Checking CPI named groups: You can verify that all texts are contained within the CPI group
by using the structure tree and clicking left on a CPI group. If you do so, all elements within the
chosen CPI group become selected and they are displayed highlighted. This verifies that they
are associated together in the same group.
Create the other CPI named groups: Once you have selected a CPI group, you can copy and
paste it easily to define the other CPI groups. You then have to rearrange only the attachment
points and adjust the values for the variables according to the current position of the tab. Create
CPI named groups at all the other places where a symbol is to be loaded as shown in
Figure 135, “CPI named Groups in Position” on page 154. Use the variable values shown in
Figure 135.
The symbol attachment points must be dimensioned so that they lie at grid intersections.
Figure 137 shows how to do this. Remember that the main dimensions have been omitted for
clarity. The way that the attachment points are dimensioned is critical. In this example they are
dimensioned from the tangent points of the arcs, easy to probe using the Near probe      . They
can be dimensioned in any way that you want, provided that the attachment point datums lie at
grid intersections when the drawing is parameterized.
Check that attachment points lie at grid intersections with the tool Draws the grid corresponding to the
original drawing and undoes it . From now on, whenever the shape of the gearbox cover is
changed, the attachment points will also move. This enables the symbols to adjust to the shape
of the component.
Add an in-sheet command to delete all the dimensioning, symbol attachment points, supporting
lines and in-sheet commands on the master drawing during loading parameterization. For
example, LAY 4 13 14 DEL.
Finally, parameterize the drawing using the tool Parameterizes the geometry then immediately undoes .
The result is shown in Figure 138. The gearbox cover itself is not parameterized because its
dimensions have not been changed. The tab symbol is parameterized and loaded at the three
prepared locations. The tabs are aligned with the attachment points and are drawn using the
dimensions specified in the CPI named groups.
         Figure 138   Result of temporary parameterization
If there is a problem during parameterization, an error message is written next to the SPS text of
the CPI named group that is causing the problem. An error may be due to a problem with the
CPI named group or with the symbol that you are trying to load.
Further Parameterization
Refresh the screen with Refresh Graphics    to restore the original drawing. Now change the vari-
able d1 on the gearbox cover to 30.0 mm instead of 15.0 mm and parameterize the component
again. Figure 139 shows the result. This time the gearbox cover itself is parameterized, then the
parameterized tabs are added to the sides. Notice that the tabs have moved with the sides of
the gearbox cover.
         Figure 139   Alternative Parameterization
PARAMETRIC GROUPS
This chapter shows how you can use parametric groups to isolate geometry where dimensions
are to remain unchanged. This enables you to exclude some parts of geometry from parameter-
ization.
Introduction
Parametric groups provide a useful way of moving and scaling parts of a drawing without having
to dimension every detail. The detail enclosed in a parametric group is either scaled or ignored
during parameterization depending on the number of prims in the group.
A parametric group consists of an parametric group line (type LPG) and 0, 1, 2 or 3 parametric
group prims (type PPG).
         Figure 140   Structure of a Parametric Group
Sheet
Group
The simplest form of parametric group is a static group. This consists of a closed line of type
LPG in a group, and does not include any parametric group prims. Undimensioned points inside
a static group remain in their original position on the sheet during parameterization.
A parametric group which contains an LPG line and one or more PPG prims is known as a
dynamic group. Points within a dynamic group can be moved, scaled, rotated, or differentially
scaled depending on how many PPG prims the group contains.
Normally when you prepare a drawing for parameterization, you must dimension every single
point inside the parametric viewbox. So long as they are not required to move during parameter-
ization, points within a parametric group do not have to be fully dimensioned. This can come in
useful when you are parameterizing drawings containing detailed representations of springs,
knurling, bolts, and so on. Points inside a parametric group that are dimensioned move as
required during parameterization.
Example
The example in Figure 141 shows a bolt. Because the bolt head is included in a parametric
group, the bolt head chamfer does not have to be dimensioned. When the drawing is parame-
terized, the bolt head will not be parameterized but scaled. The three small squares are para-
metric group prims. These are placed on the grid by dimensioning. During parameterization
these prims will move to a position on the new grid: the rest of the points in the parametric group
move will move in relation to the way the prims move.
In this example, the size of the component changes, but the size of the bolts remains constant.
Figure 144 shows a component which has two bolts. You may want the bolt heads to remain
completely static or require them to move together with the main component when the drawing
is parameterized. You can do this without having to dimension the bolts in any detail by using a
parametric group.
Draw the outline of the component in Figure 144 and then draw the bolt heads and washers.
Use a prim for the reference point. When you have finished drawing the component, dimension
it.
         Figure 144   Component with Bolts
Begin by opening a new group. This group will contain the parametric group line, a closed line of
type LPG. The line must be part of the group. Draw a closed LPG line around the bolts, as
shown in, Figure 145 and then end the group.
Change some of the dimensions of the component and then parameterize the drawing using the
tool Parameterizes the geometry then immediately undoes . Figure 146 shows how the outline of the
component is changed according to the new dimensions but the bolts remain in their original
position.
         Figure 146   Result of Parameterization
Note that the bolts are neither parameterized nor repositioned. However the outline is changed,
all undimensioned points in the group remain stationary. The points in the group that are dimen-
sioned (the two points A and B forming part of the outline of the main component) are parame-
terized normally.
In this example, a PPG prim is used with a parametric group line to move the undimensioned
points in the group with the component as it is parameterized. The prim links the objects inside
the group line to the parametric grid. By placing the PPG prim at a grid intersection, all undi-
mensioned points inside the group will now move in exactly the same way as the prim during
parameterization, although they are neither scaled nor parameterized.
Redraw the sheet and restore the original dimensions, as shown in Figure 144, “Component
with Bolts” on page 163. Now make the parametric group line current and then create a prim of
type PPG. The prim looks like a small square. By making the group line current before creating
the prim, you ensure that the prim is part of the same group as the line. Place the prim inside
the parametric group at the point shown below.
        Figure 147   Prim Placed Inside Parametric Group
The prim must be placed at an intersection of grid lines, as in Figure 147, otherwise Parametric
Design returns the following error message when you try to parameterize the drawing:
          Point not dimensioned
Now replace the original dimension texts with the new parameters shown in Figure 148 and
then parameterize the component. This time the bolts move in exactly the same way as the
prim. The PPG prim has moved up and left. So have the bolts. Again notice that, although the
bolts have moved, they have not been changed in size.
Experiment by changing the dimensions and then parameterizing the drawing again. The group
always moves in unison with the prim.
In this example you will see how two prims can be used with a parametric group to scale the
undimensioned points in the group.
Draw and dimension the component shown in Figure 149. Create the horizontal 20.0 mm
dimension on the right side of the shaft separately from the other horizontal dimensioning. This
allows it to be removed in a later operation.
         Figure 149   Dimensioned Component
Use intersecting static baselines to specify the reference point. Add the in-sheet command PAR
COL ON. Remember that the PAR COL switch that can be turned on so that grid lines are
drawn along lines which are collinear but which do not overlap (refer back to ”Layers and Para-
metric Switches”, “The PAR COL switch” on page 114 for a description of the PAR COL switch).
Using PAR COL here saves having to dimension the 20.0 mm shaft diameter twice, once on
each side of the component. Draw the grid and then test the drawing with the tool Parameterizes the
geometry then immediately undoes .
Now change the right-hand end of the shaft so that it represents an interrupted view, as shown
in Figure 150. The end of the shaft is constructed by drawing three elliptical arcs. Remove the
20.0 mm horizontal chain dimension on the right side of the component.
This interrupted view presents you with an interesting problem. You could dimension the ellipti-
cal arcs at the end of the shaft so that the whole object can be parameterized, but this sort of
dimensioning is tedious and rather pointless. To avoid this, you can draw a parametric group
line around the end of the shaft and then add two PPG prims to the group, as shown in
Figure 151.
        Figure 151   Creation of New Group and Addition of Group Line
To create the parametric group, open a new group and then draw a parametric group line
around the end of the shaft, as shown in Figure 151. Keeping the group open, create two PPG
prims and place them at the intersections shown. Make sure that the prims and the group line
are both be part of the group, and that you position the prims accurately.
The prims are placed on the grid by the 20.0 mm diameter dimension. During parameterization,
all undimensioned points in the group will move in the same way as the prims. The component
should now look like the one in Figure 152.
In Figure 152 you can see that the shaft on the right is dimensioned. This means that the shaft
will be parameterized according to how the 20.0 mm diameter dimension changes. The only
undimensioned points in the parametric group are the points that form the elliptical arcs. During
parameterization, these points will move in the same way as the prims move. They will be
scaled, but not parameterized.
Now change the 20.0 mm dimension text on the interrupted shaft dimension to 10.0 mm and
then run the tool Parameterizes the geometry then immediately undoes . The result is shown in
Figure 153.
         Figure 153   Parameterized Component
As expected, the diameter of the shaft changes according to the new dimension. If you look
closely, however, you can see that the end of the shaft has been shortened, and that the ellipti-
cal arcs have been scaled down in proportion. It is important to grasp that the diameter of the
shaft is the only part of it that has been parameterized. The rest of it has been scaled to match
the new positions of the prims. The prims, which were 20.0 mm apart, are now 10.0 mm apart.
This means that all undimensioned parts of the group have been scaled by a factor of 10/20. In
other words, the parametric group has been scaled down to half size.
Now change the diameter of the shaft to 35.0 mm and parameterize it again. Figure 154 shows
the result. The shaft has been scaled by a factor of 35/20. The length of the shaft is changed by
the same ratio.
         Figure 154   Parameterized Component
Using two prims, you can ensure that a parametric group rotates with the rest of the geometry if
necessary. This example illustrates how a bolt hole can be rotated in this way. In the component
shown in Figure 155, one prim lies on the center line of the bolt hole and the other is positioned
so that it marks the width of the hole.
         Figure 155   Bolt Hole With Parametric Group
The second prim ensures that the parametric group rotates if the main component rotates. The
20.0 mm hole dimension serves two purposes:
      • It allows the diameter of the hole to be changed during parameterization.
      • It places the second prim at a grid intersection, allowing the bolt hole to be rotated.
The undimensioned points in the group will move in the same way as these prims move in rela-
tion to each other, as shown in Figure 156:
         Figure 156   Rotating a Parametric Group
When the 20.0 mm dimension is changed, the length of the bolt hole is changed as well as the
width. For example, if the width is changed from 20.0 mm to 30.0 mm, the length of the bolt hole
is scaled accordingly. Its new length is 30/20 of its original length. You can set the length of the
bolt hole independently from its width by using a third prim. This is explained in the next section.
In this example you will see how to parameterize a more complex component without having to
dimension all the intricate details, such as bolt holes.
Figure 157 shows a component that contains three bolt holes. Using three prims, you can differ-
entially scale the parametric group and set the length and width of each bolt hole independently.
         Figure 157   Component With Bolt Holes
Begin by drawing and dimensioning the component in Figure 157. The reference point is fixed
by two static baselines that intersect at the top right corner of the component. The dashed verti-
cal line through the center of each bolt hole (shown more clearly in Figure 158) enables you to
dimension the holes from the reference point.
         Figure 158   Detail of Bolt Hole from Figure 157
When you have drawn and dimensioned the component, draw a parametric group line around
each hole, as shown in Figure 159. Remember to create a new group for each parametric
group. At this stage add a single PPG prim to each group.
         Figure 159   Parametric Group Line
Test the drawing to make sure that it will parameterize. If there are no problems replace some of
the dimensions with new parameters.
Parameterizing
Parameterize the drawing. Figure 160 shows one parameterized version. Notice how the bolt
holes have moved.
         Figure 160   Parameterized Drawing
The next step is to add two more prims to each parametric group, as shown in Figure 161.
Remember to open the group before creating new prims for each group. Add the 12.0 mm
dimensions. This enables you to set the diameter of each hole when the drawing is parameter-
ized. Finally, add an in-sheet command PAR COL ON. This ensures that the grid line created by
the 20.0 mm dimension at the right side of the component extends to the bottom of the other
bolt holes (which are collinear). You can now change the depth of each hole during parameter-
ization.
        Figure 161   Adding More Prims
Figure 162 shows the result of parameterization. Note that the depth, diameter, and positions of
the holes have been changed.
        Figure 162   Parameterized Drawing
POST-PARAMETERIZATION
This chapter shows the functionality of 2D Parametrics which cannot be done with parameter-
ization itself but afterwards therefore it is called Post-Parameterization.
• Dialog..................................................................................... 177
Overview
The purpose of the post-parametric module is to create families of parts by applying user
parameters to procedures attached to MEDUSA graphics groups.
The callback functionality may be used on its own or as an extension to the MEDUSA Paramet-
ric module, for example to arrange multiple copies of a parametric part into an array pattern.
Callback definitions are saved with the sheet.
Precondition for post-parameterization is that geometries are assembled in groups.
Dialog
To bring up the Post-Parametrization dialog press the button Display Post Param Dialog   in the Paramet-
   tooltray.
rics
Remove
           deletes the callback stored on the selected group. After executing callbacks they are
           removed automatically from the group in order to prevent executing them several
           times.
Exec
           executes the parametric procedure stored on the current group. If you changed
           parameters this button is disabled until you Apply the new settings.
Exec All
            executes the procedures stored on all groups in the current sheet.
Exec All after parametrization
            If this option is switched on, after parameterization all post-parametric procedures will
            be run automatically.
OK, Apply
            These buttons apply the settings of the current callback. If you use Apply the button will
            be disabled and the dialog remains open. OK closes the dialog.
Before defining a callback function for a certain geometry group, we recommend to look through
the available callbacks. If no group is selected, inside the Post-Parametrization dialog the list Group
parameters is disabled. Use this mode to browse through the available callbacks. The browse text
of the selected callback show you a short description.
Procedure
      1. Open the Post-Parametrization dialog with the button Display Post Param Dialog in the
         Parametrics tooltray.
         You can keep the Post-Parametrization Dialog open while switching between sheets or
         changing the sheet selection.
      2. Select a sheet level group.
      3. Pick a callback.
         Instead of selecting from the list you can also type the name of the callback.
      4. Enter its parameters and press Apply.
         Parameters can be certain values, variables and expressions.
      5. After the parameters have been assigned you can press Exec to test-run the callback.
      6. Undo the execution because otherwise the callback definitions cannot be stored with
         the sheet.
      7. Repeat the procedure for any group of geometry which needs to get a callback
         definition.
      8. If you are finished, save the sheet to store the callback definitions with the sheet
         information.
Please note: Consider that a group can get only one callback.
Possible Errors
All expressions are evaluated at the time of entry and invalid ones are shown in yellow. The
browse text of a parameter expression will show you its current value. If the expression cannot
be evaluated the browse text displays Can’t Evaluate.
You should note that at the time of execution a once-valid expression could turn out to be
invalid. In this case the offending expression will be shown in red.
        Figure 167   Example for an invalid parameter after running callback
Callbacks
This section gives all the callbacks distributed with the MEDUSA 2D Parametrics module.
The function of a callback is explained in a browse text, which appears after selecting a callback
and keeping the cursor on the edit field for a moment. The following sections give you some
more information. In addition see the section “Dialog” on page 177.
ppcb_array_copy_angled
This callback copies the geometry of the current group into the direction from first to second
prim (in the dialog it is called Distance along axis) and perpendicular (Distance across axis) to this direc-
tion. The distance and number of copies is defined by the specified values for Copies along and
Copies across the axis.
ppcb_array_copy
This callback copies the geometry of the current group in x- and y-direction. The virtual line
defined by the prims specifies the direction of copying as well as the spacing between the cop-
ies in horizontal and vertical direction. The number of copies is defined by the user and it can be
different in x- and y-direction. See also “Example” on page 186.
Please note: The values defined for Copies in X and Copies in Y have to be increased by one. So
             the final number of geometries in the array is: (Copies in X + 1) x (Copies in Y +1).
             For example, if both values are two, the number of geometries in the array is nine.
ppcb_multi_copy
This callback copies the geometry of the current group into the direction from first to second
prim. The spacing between the copies is defined by the distance between the prims. The user
obly defines the Number of copies in the dialog.
         Figure 170   ppcb_multi_copy
ppcb_copy_rotate_pcd
This callback copies the selected geometry Total Number times on a circular line of Total Angle
degrees whose center is defined by the prim. The geometries are placed even on the circular
line.
         Figure 171   ppcb_copy_rotate_pcd
ppcb_copy_and_mirror
This callback mirrors the geometry at the virtual line defined by the two prims.
         Figure 172   ppcb_copy_and_mirror
ppcb_copy_rotate
This callback copies the selected geometry Number of copies times on a circular line whose center
is defined by the prim. The geometries are placed every Angle degrees on the circular line.
         Figure 173   ppcb_copy_rotate
Example
The following images illustrate the effect of the procedure ppcb_array_copy applied with parame-
ters Copies in X = 4, Copies in Y = 2. The original graphics will be copied 5 times in the X direction
and 3 times in the Y direction using the displacement between the 2 prims as spatial increment.
         Figure 174   Example: Parameter Settings in the Dialog Post-Parameterization
Demo Sheet
To test the Post-Parametric functionality you can use the demo sheet postparam.she. This sheet
is stored in <installation directory of MEDUSA>\MEDPARA\M2D\DEMOS. It contains several
groups of geometry and each of them runs with a callback procedure.
After loading the sheet, open the Post-Parametric Dialog and press Exec All. Full Undo/Redo is
available.
SIMULATING MECHANISMS
Using MEDUSA Parametric Design, you can simulate the movement of parts or objects by
repeatedly parameterizing selected dimensions. A mechanism is redrawn on the screen at reg-
ular stages, enabling you to investigate potential clashes between different parts of the mecha-
nism. This technique relies upon repeating a sequence of commands which increase or
decrease the value of variables between repeated parameterization operations.
This chapter contains examples for you to try out.
• Dialog..................................................................................... 191
Introduction
To simulate the movement of a mechanism, you draw the geometry and set up a parametric grid
using a prim or intersecting baselines and valid dimensions as if you were preparing for normal
parameterization. Enclose parts of the object that will not move within a parametric group, or
leave their dimensions unchanged. Where dimensions will change, replace the text with a vari-
able.
Please note: Remember to make your viewbox large enough to allow the movement you expect
             to see.
Repeated Parameterization
Points to Consider
When you use Parametric Design to simulate mechanical movement, ensure that:
    • All parts of the mechanism are inside the parametric viewbox at all times
    • The mechanism is adequately dimensioned and tested before attempting to simulate
       movement
    • Dimensions which are to change are represented by variables or expressions
       containing functions of variables
    • Variables are given an initial value before any parameterization begins
    • Variables are incremented each time the drawing is parameterized
    • For Bacis1 programs consider that the PARS command is cancelled each time the
       drawing is parameterized
Dialog
For simulating a mechanism MEDUSA provides the dialog Mechanisms which can be opened with
the tool Simulates mechanism motion available inside the toolset for parameterization.
              Figure 178   Dialog for Running Mechanisms
Step
           is the current step number (for information only).
Stop on first break
           stops simulation if an error occurs. By default this option is off.
Clear screen between steps
           If this option is off (default), the result of each parameterization is drawn on the screen.
           so you get parts of the parameterized geometry one over each other. To clear the
           screen after each parameterization, switch on this option.
The buttons are:
OK
           closes the dialog. The current settings are stored for later usage.
Apply
           uses the current settings. After each run of simulation you have to Apply the settings
           again in order to rewind the sequence to its beginning (see currently displayed Step
           number)
Delete
           removes the currently selected variable from the Variable list.
Defaults
          replaces the values of the current Variable with the default values.
Cancel closes the dialog.
Buttons for running simulation
          The left buttons run one step of the simulation, forward or backward.
          The right buttons run the whole simulation, forward or backward. until the number of
          Maximum steps or until the first break point.
          The buttons for running simulation backward do work as recently as simulation was
          done forward.
          Each parameterization step accords with the singular usage of the tool Parameterizes the
          geometry then immediately undoes    . So, if you redraw the graphics the parametrization
          result disappears and the original drawing is shown again.
Help opens the appropriate page in the online documentation.
Please note: Simulation settings are valid for the current MEDUSA session only.
This example shows how to use a text variable command to repeatedly parameterize an object.
No movement is simulated in this example but in the next example you will use the same tech-
nique to move an object across the screen.
Draw and dimension a rectangle, as in Figure 179. The actual width and height are not impor-
tant. Before you replace the dimension texts with variables, add the prim and then test to see if
the drawing can be parameterized using the tool Parameterizes the geometry then immediately undoes .
Then change the dimension values to variables, as shown.
         Figure 179   Drawing to be Parameterized
To ensure that dimensioning and in-sheet command text do not appear on each parameterized
drawing, add the command LAY 4 14 DEL.
Setting Values
Now open the Mechanisms dialog with the tool Simulates mechanism motion    and define the parame-
ters as given in the following figure.
Running Simulation
You can see the result in Figure 181. The rectangle is repeatedly parameterized by changing
the value of the variable len. The variable len was increased by 5 mm for each parameteriza-
tion.
        Figure 181   Result of Repeated Parameterization
This is a simple example showing how to simulate linear motion. You will parameterize an
object so that it moves across the screen, 5 mm further at each step.
Begin by creating the drawing shown in Figure 182. Use any convenient dimensions. Note the
position of the prim. When you have drawn and dimensioned the object, add the variable
parameter dist, as shown in Figure 182. This enables you to move the object away from the
prim.
        Figure 182   Object Definition Drawing
To ensure that dimensioning (layer 4) and in-sheet command text (layer 14) do not appear on
each parameterized drawing, add the in-sheet command LAY 4 14 DEL.
Setting Values
Now open the Mechanisms dialog with the tool Simulates mechanism motion   and define the parame-
ters as given in the following figure.
         Figure 183   Settings for linear motion
Running Simulation
Figure 184 shows the result after running the simulation forward. For displaying only the last
parameterization switch on the option Clear screen between steps.
         Figure 184   Result of Simulating a Motion
This example shows how you can use Parametric Design to simulate the rotary movement of a
simple component which turns around its center. Later, two reciprocating rods will be added to
the component to form a working mechanism.
Draw the component shown in Figure 185 at a horizontal orientation and then rotate it so that it
is not constrained to remain horizontal during parameterization.
Consider that the position where static baselines cross is the center point for both big circles.
The center of the small circle is on the line of the inner big circle. Each circle is dimensioned
with diameter dimensioning. The angle dimension is between the center of the small circle and
the 15 degree baseline
         Figure 185   Component Definition
Dimension the component once you have rotated it, as in Figure 185. Test the drawing with the
tool Parameterizes the geometry then immediately undoes . Do not proceed unless it can be parameter-
ized.
To ensure that dimensioning (layer 4) and in-sheet command text (layer 14) do not appear on
each parameterized drawing, add the in-sheet command LAY 4 14 DEL.
Change the angular dimension values to variables, as in Figure 186. Save the sheet before
continuing. You need this sheet for the next example.
           Figure 186   Replaced angular dimension values by variables
Now open the Mechanisms dialog with the tool Simulates mechanism motion   and define the parame-
ters:
      • Start Value = 0
      • Increment Value = 15
      • Maximum Steps = 15
      • Delay = 0.5 seconds
Apply   the settings and then use the buttons for simulation.
Result of Simulation
Figure 187 shows the result after running the whole simulation forward. For displaying only the
last parameterization switch on the option Clear screen between steps.
        Figure 187   Result of Simulating a Rotation
Besides running simulation in the graphical user interface using the dialog Mechanisms, you also
can use a Bacis1 program. A program is a file containing a number of MEDUSA commands and
it can be used to repeat a sequence of commands.
This example uses the component you created in the last example, “Example 3: Simulating
Rotary Motion” on page 197.
The example below shows a simple program which parameterizes the component you have
drawn. To begin with, ANG is set to 40 degrees. The PARS CAN command is placed inside a
loop which parameterizes the component repeatedly.
         10   LET ANG = 40
         20   LOOP
         30      PARSCAN
         40      BREAK IF (ANG.GT.100)
         50      LET ANG = (ANG + 30)
         60   ENDLOOP
         70   ENDRUN
With each loop, the program does the following:
      • Parameterizes the component temporarily with the PARS CAN command
      • Uses a logical operator to test if the value of ANG is less than 100 degrees: if this
        evaluates to true, then the program increments the value of ANG by 30 degrees
      • If ANG is greater than 100 degrees, then the program stops
Please note: It is not possible to use PARS instead of PARS CAN in command loop. You will
              generate error if you do use PARS because the drawing resulting from the first
              PARS command will be used as input for the next. This causes problems as there
              is no guarantee that a drawing produced by parameterization is itself capable of
              being parameterized. A drawing that is the result of parameterization may contain
              geometric constraints, such as coincident points or horizontal and vertical lines,
              which prevent it from being parameterized
Program mode
The following example shows how to create the simple program shown above using MEDUSA
program mode. In this example, the file containing the parameterization program is called
MECH1.PRG. User input is shown in bold text.
        *PROGRAM
        Program>AUTO 10 10
         10 LET ANG = 40
         20 LOOP
         30 PARSCAN
         40 BREAK IF (ANG.GT.100)
         50 LET ANG = (ANG + 30)
         60 ENDLOOP
         70 ENDRUN
         80 PROGRAM
        Program>SAVE MECH1.PRG
        PROGRAM saved on file: MECH1.PRG
        Program>COMMAND
Running a Program
When you run the program, first clear the screen with the CLE command and then type RUN
followed by the name of the file containing the program:
        *CLE
        *RUN MECH1.PRG
        Figure 188   Result of Repeated Parameterization
In this example you combine rotary motion with two reciprocating rods to produce a working
mechanism.
Take the drawing you created in “Example 3: Simulating Rotary Motion” on page 197.
      1. Draw two circles near to it, as illustrated in Figure 189. The new circles act as pivots for
         a rod.
      2. Draw tangential lines between the new circles to create two rods. Use the tool Creates
         construction lines through tangential chord of circles from the tooltray Creation tools for designing
         them.
      3. Dimension the new geometry. After each dimension use the tool Draws the grid
         corresponding to the original drawing and undoes it       for checking whether the grid is correct.
      4. To complete the definition drawing, place a PVG prim at the center of the lower circle.
         The prim creates grid lines in the same way as the baselines at the other end of the
         mechanism. More important, the prim locks the circle into its current position. When
         the component rotates, the two rods will move, but the circle marked with the prim will
         remain fixed.
          Figure 189   Adding Two Circles and Two Rods
Use the same settings for the variable ang as defined in “Example 3: Simulating Rotary Motion”
on page 197. Apply the settings and then use the buttons for simulation. Figure 190 shows the
result after running the whole simulation forward. For displaying only the last parameterization
switch on the option Clear screen between steps.
        Figure 190   Simulated Mechanical Movement
Plotting
It is not possible to plot the screen display to show all the movement of the mechanism. You can
only plot the master drawing that is used for each parameterization.
The reason for this is that you parameterize the drawing temporary, not permanent. The master
drawing is redrawn with new dimensions, but parameterization is immediately cancelled. When
you plot a sheet, you get the information in the master drawing, not simply what you see on the
screen.
If you cannot get a screen dump, you can create a composite drawing of the mechanism using
the following procedure.
        1. Increment the variable in the master drawing.
        2. Parameterize the drawing permanently.
        3. Save the sheet as a symbol.
        4. Increment the variable on the master drawing by a further step.
        5. Parameterize the drawing again.
        6. Save the sheet as a symbol, using a new filename.
Continue this procedure until you have a symbol representing each stage in the movement of
the mechanism. Then load all the symbols onto the same sheet to form a composite drawing
which can be plotted.
OTHER APPLICATIONS
The Parametric Design system can be integrated with other MEDUSA software. This chapter
gives some examples where Parametric Design has been applied to the MEDUSA 3D Design
system and the MEDUSA Sheet Metal Design system.
The purpose of this chapter is to show what is possible. It is not intended to be a detailed refer-
ence.
MEDUSA Applications
The name MEDUSA covers a variety of applications software including the following:
     • MEDUSA 2D Design system
     • MEDUSA Parametric Design
     • MEDUSA 3D Design system
     • MEDUSA Sheet Metal Design System
     • NC definitions
2D Design System
The basic system is the 2D drafting system. This must be installed before any of the other pack-
ages can be used. The other applications can be added separately, as and when required.
3D Design System
The 3D design system takes a specially prepared 2D drawing and then turns it into a 3D model.
The Sheet Metal Design system takes a specially prepared 2D drawing (or a 3D model) of an
object and then calculates the true shape of the unfolded metal required to make it.
NC Definitions
Information from a specially prepared 2D sheet is used to define machining operations such as
turning and milling.
The common factor running through all these applications is that they take their information
from a 2D drawing. The heart of MEDUSA is the 2D product. Any 2D drawing can be parame-
terized, so it is a simple step to parameterize a drawing and then use the drawing as input to
one of the other MEDUSA applications.
      5. Choose the tool Draws the grid corresponding to the original drawing and undoes it   for checking
         the grid lines.
      9. Choose the tool Draws the grid corresponding to the original drawing and undoes it   for checking
         the grid lines.
      14.Use the same tool to place the parametric command Text LAY 7 28 UNTRN in one of
        the view boxes in order to prevent 3D center and link lines used for parameterization.
Please note: If a point of the Link line for rotational sweeping does not coincide with a point of the
             geometry, parameterization fails because it detects such point of the link line as
             an undimensioned point.
      f. Click left on the sheet but not inside any view box to place the command.
         You should have now a drawing like in the figure below (consider that the MAKE
         command was moved into the XZ view only to show it, it has to be outside of any
         view!).
      Figure 193   Example 3D Modelling, Prepared for Parameterization and Modelling
You can parameterize an initial definition sheet and produce a whole range of differently folded
components from a single drawing. Figure 195 shows two parameterized versions of a box.
        Figure 195   Parametric Design and MEDUSA Sheet Metal Design
This appendix gives a brief summary of the element type and layer defaults for elements used
in Parametric Design.
The following table shows the type and layer defaults for some basic Parametric Design ele-
ments. You will use some of these elements whenever you use Parametric Design.
   Element                                 Element type                              Layer
   Parametric viewbox                      LPV line                                  28
   Static baselines                        LBL line                                  4
   Dynamic baselines                       LBL line                                  16
   Reference prims                         PVG, DXY, DYZ, DZX, DYZ, DZY, DXZ prims   4
   Grid lines                              STK line                                  99
   Lines created by the PAR GRIS options
                                           L3 line                                   17
   COL and CIR
   In-sheet commands                       TCO text                                  14
These elements are used in tables. Use a table when you need to store a number of values.
                       Element                       Element type       Layer
                       Table boundary line           LTB line *         14
                       Table name text               TTB text *         14
                       Row and column names          TRC text           14
                       Table entries                 Any other text     14
These elements are used for creating parametric symbols and instance groups.
                   Element                               Element type        Layer
                   Symbol attachment point               ATP text            13
                   Symbol name                           SPS text *          13
                   Instance group attachment point       SAT text *          13
                   Instance group command                SCO text *          13
These elements are used in error messages that are written onto the sheet.
                             Element       Element type           Layer
                             Error texts   TS1 or TR1 text        99
                             Error lines   L6 line                99
MEDUSA provides a dialog, which gives you most of the element types used for Parametrics
and which allows you to change them temporary for the current session.
For opening the dialog Parametric Data Definition choose the tool Display the current settings of the paramet-
ric line styles from the tooltray Parametrics.
          Figure 196   Dialog Parametric Element Types
Consider that for parameterization 3D prims can be used (entry Datum prim (PVG), values DXY,
DYZ etc.).
For details on changing parametric element types see the Parametrics Reference Guide, chap-
ter „Changing Element Types“.
This appendix gives an alphabetical list of error and warning messages that occur in the Para-
metric Design system.
Any relevant MEDUSA error message can also appear either in the sheet or on the screen. For
information on MEDUSA error messages, refer to the MEDUSA Bacis1 Design Commands
Guide.
Ambiguous Construction
The new grid on which the construction is based does not result in a unique set of grid lines.
When a construction has unnecessary supporting grid lines, Parametric Design uses only the
minimum necessary to support the construction. The remaining grid lines are then checked for
consistency. This error is normally caused either by over-dimensioning, or by using a tolerance
that is too large. Use the tool Draws the grid corresponding to the original drawing and undoes it to identify
the grid lines that are used to support the construction.
Ambiguous Point
This point is at a point on the old grid that does not transform to a unique point on the new grid.
This is because the grid lines which intersect at the point in the old grid do not all intersect at the
same point in the new grid. This error is normally caused by over-dimensioning or by using a
tolerance that is too large. Use the tool Draws the grid corresponding to the original drawing and undoes it
to identify the grid lines that intersect at the point.
The table cannot be separated into rows and columns with the same number of entries in each
row and in each column. Check the types, positions and number of texts in the table.
This error occurs if one of the construction elements used as input to Parametric Design does
not have a valid type specified for it. This is most likely to be a problem in the DDL, as the Para-
metric Design system has a complete set of defaults.
This error is produced when parameterization is executed and an error is found in your dimen-
sioning, for example a corrupt dimension group.
This error is normally caused by coincident or collinear datum points in a parametric group.
This error is produced when you use tool Load parametric symbol   and an element is found in the
symbol definition which is not valid as input to Parametric Design.
Axonometric and tolerance limit dimensions are not supported by Parametric Design. See
“Dimensioning” on page 25, to see which dimensioning types you can use as input to Paramet-
ric Design.
Illegal Expression
An expression has been used to define a variable which includes an invalid operator or function.
See “Variables and Expressions” on page 91, for a list of valid operators and functions.
The point function used on the baseline indicated is not recognized by Parametric Design. See
“Geometric Constraints” on page 75, for more information on point functions.
The text indicated should be a valid variable name. This message may occur with symbol
attachment points and table row and column names.
The viewbox indicated interferes with other viewboxes in the sheet. Viewboxes may not overlap
or be nested. The X and Y limits of each viewbox line are used when testing for overlap. The
other viewboxes are processed as normal.
No Constructions in Viewbox
No grid was generated because there was no valid construction in the viewbox. This is either
because there are no dimensions or other constructions in the viewbox, or the constructions are
on unhittable layers.
No Current Sheet
There must be a current sheet before you can execute any commands
No Solution Possible
The point or construction has no solution in the new grid. For example, a point may lie at the
intersection of two circular grid lines in the old grid, but in the new grid the circles are too far
apart to intersect.
No Supporting Grid(s)
The construction indicated does not have sufficient grid lines to support it. Use the tool Draws the
grid corresponding to the original drawing and undoes it to examine the existing grid. This should reveal
the missing link that is required to build up the grid. If the PAR BAS switch is OFF, you may
need to add a dynamic baseline.
No Table Found
No table with the specified name can be found. If you give TBL command as an in-sheet com-
mand in a parametric symbol definition, the search is restricted to the symbol containing the
command.
No Viewboxes in Sheet
The Parametric Design system only processes geometry which is inside a parametric viewbox.
These error messages relate to obsolete Prime Variational Geometry commands for displaying
parts of the grid. Use the PAR LIM switch instead. When the PAR LIM switch is ON, the grid
lines extend to the edges of the viewbox.
The point indicated does not lie on a grid intersection. All line points must lie on grid intersec-
tions. This message may be the result of under-dimensioning, but can also be caused by inac-
curate drafting, where points that should be coincident are not quite coincident. The error can
also occur if the end points of dimensions are not at grid intersections. Be careful to probe the
correct points when you are dimensioning objects.
Some unidentified problem has occurred with a construction. This is often due to zero length
baselines or expressions that evaluate to the wrong data type.
An internal problem has occurred with the parametric group datum points.
A problem has occurred in creating a test polygon from the parametric group line.
This message is displayed following the unsuccessful completion of displaying the grid or
parameterization. A problem has occurred in attempting to convert a VAR dimension to a LIM
dimension. Refer to the MEDUSA Parametric Design Reference Guide for more information
about this message.
The specified text string cannot be found as a row or column name in the specified table.
The row and column texts must be outside the area of the table containing all the entries.
These errors are due either to a problem in the DDL or an invalid type specified in the PAR DDL
command. Refer to the MEDUSA Parametric Design Reference Guide for more information
about the PAR DDL command.
Grid lines that cross the potential grid line are stored in an buffer. When this buffer overflows
you will see the message above. This means that a baseline will not be automatically gener-
ated. This buffer is also used with output radial dimensions. To avoid the problem you can add a
baseline explicitly.
Each grid lines that passes through a point is stored in a buffer. When too many grid lines pass
through a point this buffer overflows and you will see the message above.
This error may occur when you use the PAR DDL command to define new element types. The
maximum number of element types you can define with the PAR DDL command is 50. Sixteen
are defined by default. Refer to the MEDUSA Parametric Design Reference Guide for informa-
tion about the PAR DDL command.
This error is normally caused by having too many dimensions in one viewbox. The workspace is
used for storing information on the constructions and grid lines.
The maximum number of in-sheet commands in a viewbox is 200. Less may be allowed if you
use large numbers of variables.
There must be at least one row, one column and one entry in a table.
When you parameterize an object, no points can be moved outside the maximum drawing area.
Typing Mistake!
This error is the result of bad command syntax either in an in-sheet command or in a command
that you have entered directly. This error also appears, if you used for an attachment point text
the wrong text type, e.g. TCO instead of ATP.
The PAR DIM option VTL has failed. Either the VAR dimension being converted or the resulting
LIM dimension is invalid. Refer to the MEDUSA Parametric Design Reference Guide for more
information about the PAR DIM command.
This error occurs when you try to load a parametric symbol definition which is does not exist or
is not readable. Make sure you have given the correct pathname for the symbol file.
This error is generated when you try to specify an illegal element type in the TBL DDL com-
mand. Refer to the MEDUSA Parametric Design Reference Guide for information about the
TBL DDL command.
Unset Variable
This error occurs when you try to display the grid for or parameterize geometry which includes a
variable that has no value.
One or more dimension texts may have been interpreted as simple values with a prefix text, but
the texts could also have been interpreted as variable names. Alternatively, the dimension text
may have been interpreted as both a value produced by dimensioning and also as an expres-
sion.
This message is output to the screen whenever error messages are written into the sheet.
Certain grid options are only available with limited grid lines, that is, when the PAR LIM switch is
ON.
These messages will appear when you interrupt any of these commands.
One or more points were moved outside the viewbox when the elements were moved.
Elements on protected layers cannot be transformed or deleted by the Parametric Design sys-
tem. However, they can be used during the creation of the grid. This warning occurs if there are
elements on a hittable but protected layer that may also be transformed or deleted.
LIST OF FIGURES
Figure 1    Changing the Dimensions of an Object . . . .10                         Figure 37   Toolset for Drawing Grids. . . . . . . . . . . . . . . 46
Figure 2    A Family of Parts Made From a Single Master                            Figure 38   Dialog Grid construction . . . . . . . . . . . . . . . . 48
            Drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . . .11     Figure 39   Toolset for Parameterizing . . . . . . . . . . . . . . 50
Figure 3    A Symbol Library Created Using Parametric                              Figure 40   Error Messages . . . . . . . . . . . . . . . . . . . . . . 51
            Design. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12    Figure 41   Example1: Rectangle with DXY Prim Reference
Figure 4    Simulation of the Movement of a Lift Arm As-                                       Point . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
            sembly. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13    Figure 42   Example1: Effect of Drawing Grid . . . . . . . . 54
Figure 5    Examples of Parametric Viewbox Shapes . .14                            Figure 43   Rectangle Dimensioned for Parameterizing . 55
Figure 6    Intersecting Static Baselines. . . . . . . . . . . . .15               Figure 44   After Parameterization . . . . . . . . . . . . . . . . . 56
Figure 7    The Parametric Design Datum Prim (Type                                 Figure 45   Example2: Rectangle with Intersecting Base-
            PVG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15               lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Figure 8    Orthogonal View Prims . . . . . . . . . . . . . . . . .16              Figure 46   Effect of Changing the Grid Tolerance . . . . . 59
Figure 9    Positioning Baselines . . . . . . . . . . . . . . . . . .16            Figure 47   Fully Dimensioned Drawing . . . . . . . . . . . . . 60
Figure 10   Positioning a Prim . . . . . . . . . . . . . . . . . . . .17           Figure 48   Result of Parameterizing . . . . . . . . . . . . . . . 61
Figure 11   Parametric Grid Lines . . . . . . . . . . . . . . . . . .18            Figure 49   Component to be Drawn . . . . . . . . . . . . . . . 64
Figure 12   Possible Parameterization . . . . . . . . . . . . . .19                Figure 50   Displaying the Grid . . . . . . . . . . . . . . . . . . . . 64
Figure 13   Avoiding Coincident Points . . . . . . . . . . . . . .19               Figure 51   Addition of First Chain Dimension . . . . . . . . 65
Figure 14   Coincident Points . . . . . . . . . . . . . . . . . . . . .20          Figure 52   Adding More Dimensions . . . . . . . . . . . . . . . 65
Figure 15   Collinear Points on the Same Grid Line . . . .20                       Figure 53   Fully Dimensioned Component . . . . . . . . . . 66
Figure 16   Aim of Parameterization . . . . . . . . . . . . . . . .20              Figure 54   Complete Parametric Grid . . . . . . . . . . . . . . 66
Figure 17   Example of Parameterizing a Specific Case.21                           Figure 55   Old Component With New Parameters . . . . 67
Figure 18   Example of an Ideal Master Drawing . . . . . .21                       Figure 56   Parameterized Component . . . . . . . . . . . . . 67
Figure 19   2D Parametrics Tooltray . . . . . . . . . . . . . . . .23              Figure 57   Object to be Dimensioned . . . . . . . . . . . . . . 68
Figure 20   Grid Lines Generated By Reference Point . .27                          Figure 58   Displaying the Grid . . . . . . . . . . . . . . . . . . . . 69
Figure 21   Extra Grid Intersection Generated by Dimen-                            Figure 59   Detail Showing Fillet Grid Lines . . . . . . . . . . 69
            sioning Line AB . . . . . . . . . . . . . . . . . . . . . . .27        Figure 60   Object With Angular Notch . . . . . . . . . . . . . . 71
Figure 22   Grid Completed by Second Dimension. . . . .28                          Figure 61   Result of drawing the grid. . . . . . . . . . . . . . . 71
Figure 23   Toolset for Tolerance Settings . . . . . . . . . . .29                 Figure 62   Adding a Line . . . . . . . . . . . . . . . . . . . . . . . . 72
Figure 24   Dialog for Placing Tolerance Setting Texts. .29                        Figure 63   Dimensioned Angle With Grid . . . . . . . . . . . 72
Figure 25   Dialog for Tolerance Settings . . . . . . . . . . . .30                Figure 64   Dimensioning an Unsymmetrical Angle . . . . 73
Figure 26   A Linear Dimension. . . . . . . . . . . . . . . . . . . .32            Figure 65   Simplified Diagram of a Bicycle Chainset. . . 76
Figure 27   Object With Intersecting Baselines . . . . . . . .33                   Figure 66   Dialog Parametric Point Function, activated 80
Figure 28   Chain Dimensioning With Center Support . .33                           Figure 67   Object to be Parameterized . . . . . . . . . . . . . 81
Figure 29   Dialog for Filleting Settings . . . . . . . . . . . . . .34            Figure 68   Inferred Baselines . . . . . . . . . . . . . . . . . . . . 81
Figure 30   Examples of Under-Dimensioned Drawings .36                             Figure 69   Object with New Set of Dimensions . . . . . . . 82
Figure 31   Examples of Over-dimensioned Drawings . .37                            Figure 70   Object to be Parameterized . . . . . . . . . . . . . 83
Figure 32   Dialog for Changing Texts . . . . . . . . . . . . . .38                Figure 71   Displaying the grid . . . . . . . . . . . . . . . . . . . . 84
Figure 33   Toolset for Creating Viewboxes . . . . . . . . . .41                   Figure 72   Inferred Baselines . . . . . . . . . . . . . . . . . . . . 84
Figure 34   Examples of Parametric Viewbox Shapes . .41                            Figure 73   Object to be Parameterized . . . . . . . . . . . . . 86
Figure 35   Toolset for Creating Reference Points . . . . .43                      Figure 74   Detail of Fillet Construction from Component in
Figure 36   Parametric Point Function. . . . . . . . . . . . . . .43                           Figure 73 . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Figure 75    Displaying the grid . . . . . . . . . . . . . . . . . . . . 87        Figure 126 Symbol Loaded Using Teble Values From
Figure 76    Fully Dimensioned Drawing With Grid . . . . . 87                                 ROW2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Figure 77    Fillet Detail from Figure 76 . . . . . . . . . . . . . 88             Figure 127 Toolset for CPI Named Groups . . . . . . . . 148
Figure 78    Dynamic Baselines . . . . . . . . . . . . . . . . . . . 88            Figure 128 Example for a CPI named group . . . . . . . . 149
Figure 79    After Parameterization . . . . . . . . . . . . . . . . . 89           Figure 129 Dimensioned Component . . . . . . . . . . . . . 150
Figure 80    Use of Variables in Joist Definition . . . . . . . 92                 Figure 130 Changing Dimensions to Variables . . . . . . 151
Figure 81    Result of Changing Joist Dimension Variables                          Figure 131 Marking Positions of Tabs . . . . . . . . . . . . . 151
             93                                                                    Figure 132 Dimensioned Tab . . . . . . . . . . . . . . . . . . . 152
Figure 82    Dimensioned Drawing . . . . . . . . . . . . . . . . . 95              Figure 133 Individual Points on the Fillets. . . . . . . . . . 153
Figure 83    Replacing Dimension Texts With Variables . 95                         Figure 134 Tab Prepared for Saving . . . . . . . . . . . . . . 153
Figure 84    Example of In-sheet Commands . . . . . . . . . 97                     Figure 135 CPI named Groups in Position . . . . . . . . . 154
Figure 85    Dialog for Creating LCIS Variables . . . . . . . 98                   Figure 136 Detail of CPI named Group . . . . . . . . . . . . 154
Figure 86    Dialog for Query LCIS Variables . . . . . . . . . 99                  Figure 137 Dimensioning the Attachment Points . . . . 156
Figure 87    Dialog Administrate parametric variables . 100                        Figure 138 Result of temporary parameterization . . . . 157
Figure 88    Add new parametric variable . . . . . . . . . . . 101                 Figure 139 Alternative Parameterization . . . . . . . . . . . 158
Figure 89    Dialog Load and Update parametric variables.                          Figure 140 Structure of a Parametric Group . . . . . . . . 160
             102                                                                   Figure 141 Parametric Group With Three PPG Prims. 161
Figure 90    In-sheet DEF Command . . . . . . . . . . . . . . 105                  Figure 142 Toolset for Groups . . . . . . . . . . . . . . . . . . 162
Figure 91    Dialog Parametric Graphics Control . . . . . 111                      Figure 143 Example of Preventing Parameterization with
Figure 92    Toolset for Switches. . . . . . . . . . . . . . . . . . 112                      Group Line and Prim . . . . . . . . . . . . . . . . 162
Figure 93    Dialog Parametric Switches . . . . . . . . . . . . 112                Figure 144 Component with Bolts . . . . . . . . . . . . . . . . 163
Figure 94    Dialog Command Options . . . . . . . . . . . . . 113                  Figure 145 Adding a Parametric Group Line . . . . . . . . 164
Figure 95    Collinear Points With PAR COL OFF. . . . . 114                        Figure 146 Result of Parameterization . . . . . . . . . . . . 164
Figure 96    Collinear Points With PAR COL ON . . . . . 114                        Figure 147 Prim Placed Inside Parametric Group . . . . 165
Figure 97    Effect of PAR CIR OFF . . . . . . . . . . . . . . . 115               Figure 148 Change of Dimensions after parameterization
Figure 98    Effect of PAR CIR ON . . . . . . . . . . . . . . . . 115                         166
Figure 99    Original Geometry With New Parameters . 116                           Figure 149 Dimensioned Component . . . . . . . . . . . . . 167
Figure 100   Original and Parameterized Versions . . . . 116                       Figure 150 Change Made to Component . . . . . . . . . . 168
Figure 101   The Parts of a Table . . . . . . . . . . . . . . . . . 118            Figure 151 Creation of New Group and Addition of Group
Figure 102   The Structure of Table Elements . . . . . . . . 119                              Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
Figure 103   Toolset for Tables . . . . . . . . . . . . . . . . . . . 120          Figure 152 Addition of Parametric Group Line . . . . . . 169
Figure 104   Dialog for Defining Tables . . . . . . . . . . . . . 121              Figure 153 Parameterized Component . . . . . . . . . . . 169
Figure 105   Example of a Table with 4 entries/rows and 3                          Figure 154 Parameterized Component . . . . . . . . . . . . 170
             variables. . . . . . . . . . . . . . . . . . . . . . . . . . . 121    Figure 155 Bolt Hole With Parametric Group . . . . . . . 171
Figure 106   Table With Variables . . . . . . . . . . . . . . . . . 122            Figure 156 Rotating a Parametric Group. . . . . . . . . . . 171
Figure 107   Example of an In-sheet TBL Command. . . 125                           Figure 157 Component With Bolt Holes . . . . . . . . . . . 172
Figure 108   Original Component . . . . . . . . . . . . . . . . . . 126            Figure 158 Detail of Bolt Hole from Figure 157 . . . . . . 172
Figure 109   Dimensioned Component With Grid . . . . . 126                         Figure 159 Parametric Group Line . . . . . . . . . . . . . . . 173
Figure 110   Changing Dimension Values to Variables . 127                          Figure 160 Parameterized Drawing. . . . . . . . . . . . . . . 173
Figure 111   Table of Variable Values . . . . . . . . . . . . . . 127              Figure 161 Adding More Prims . . . . . . . . . . . . . . . . . . 174
Figure 112   Table and in-sheet commands. . . . . . . . . . 128                    Figure 162 Parameterized Drawing. . . . . . . . . . . . . . . 174
Figure 113   Effect of the temporary parameterization. . 129                       Figure 163 Dialog Post-Parameterization . . . . . . . . . . 177
Figure 114   Dialog for Selecting a Table Variant . . . . . 131                    Figure 164 Callbacks available for Post-Parameterization
Figure 115   Example for Variant Parameterization, Input . .                                  178
             132                                                                   Figure 165 Message for missing primary datum prim . 178
Figure 116   Example for Variant Parameterization, Result .                        Figure 166 Example for an invalid parameter after entering
             132                                                                              181
Figure 117   Attachment Points . . . . . . . . . . . . . . . . . . . 135           Figure 167 Example for an invalid parameter after running
Figure 118   Dialog for Loading Parametric Symbol . . . 138                                   callback . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
Figure 119   Example for Error Messages while Loading a                            Figure 168 ppcb_array_copy_angled . . . . . . . . . . . . . 182
             Parametric Symbol . . . . . . . . . . . . . . . . . . 140             Figure 169 ppcb_array_copy. . . . . . . . . . . . . . . . . . . . 183
Figure 120   Popup while Loading Parametric Symbol . 141                           Figure 170 ppcb_multi_copy . . . . . . . . . . . . . . . . . . . . 183
Figure 121   Symbol Definition . . . . . . . . . . . . . . . . . . . . 142         Figure 171 ppcb_copy_rotate_pcd . . . . . . . . . . . . . . . 184
Figure 122   Parametric Symbol Loaded Onto Sheet . . 143                           Figure 172 ppcb_copy_and_mirror . . . . . . . . . . . . . . . 184
Figure 123   Table as Part of a Parametric Symbol . . . . 144                      Figure 173 ppcb_copy_rotate . . . . . . . . . . . . . . . . . . . 185
Figure 124   Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145   Figure 174 Example: Parameter Settings in the Dialog
Figure 125   Dialog Select values from Table . . . . . . . . 146                              Post-Parameterization. . . . . . . . . . . . . . . . 186
Figure 175 Example: Before Parameterization . . . . . . .186                      Figure 187 Result of Simulating a Rotation . . . . . . . . . 199
Figure 176 Example: After Parameterization . . . . . . . .187                     Figure 188 Result of Repeated Parameterization . . . . 201
Figure 177 Example: After Running Post-Parameterization                           Figure 189 Adding Two Circles and Two Rods . . . . . . 202
           187                                                                    Figure 190 Simulated Mechanical Movement . . . . . . . 203
Figure 178 Dialog for Running Mechanisms . . . . . . . .191                       Figure 191 Example 3D Modelling, Hole . . . . . . . . . . . 207
Figure 179 Drawing to be Parameterized . . . . . . . . . . .193                   Figure 192 Example 3D Modelling, Plate . . . . . . . . . . . 208
Figure 180 Settings for repeated parameterization. . . .194                       Figure 193 Example 3D Modelling, Prepared for Parame-
Figure 181 Result of Repeated Parameterization . . . . .194                                  terization and Modelling . . . . . . . . . . . . . . . 210
Figure 182 Object Definition Drawing . . . . . . . . . . . . . .195               Figure 194 Example 3D Modelling, Possible Results. . 211
Figure 183 Settings for linear motion . . . . . . . . . . . . . .196              Figure 195 Parametric Design and MEDUSA Sheet Metal
Figure 184 Result of Simulating a Motion . . . . . . . . . . .196                            Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
Figure 185 Component Definition . . . . . . . . . . . . . . . . .197              Figure 196 Dialog Parametric Element Types . . . . . . . 216
Figure 186 Replaced angular dimension values by vari-
           ables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .198
INDEX
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
S                                                                       arc 68
Screen Dump 204                                                   Creates a parametric table 121
Selects a variant from a table and parameterizes it, tool 131     Creates free parametric command text 113
Selects elements or groups at sheet level, tool 136                  usage 96
Sets options for fillet behavior during parameterization 34       Creates parametric command text 113
Sheet Metal Design System 206                                     Creates parametric symbol attachment text 135
Simple Parameterization Examples 63                               Creates parametric tolerance text 29
simulate the movement of a mechanism, introduction 190            Creates parametric viewbox lines 41
Simulates mechanism motion, tool 191                              Creates parametric viewboxes 41
Simulating                                                        Creates static baselines 80
   a Working Mechanism (example) 202                              Creates user LCIS variables 98
   Mechanical Movement, overview 12                               Display Post Param Dialog 177
   Rotary Motion (example) 197                                    Display the current settings of the parametric line
   summary 190                                                          styles 216
Simulating Linear Motion, example 195                             Displays the current settings of the parametrics
Special Cases 22                                                        system 112
Special Drafting Techniques 18                                    Displays the current tolerance settings 29
specifying constraints explicitly 80                              Draws baselines inferred when the baseline switch is
specifying how the system calculates new dimension                      on 77
           values 30                                              Load parametric symbol 135, 138
Static Baselines 78                                               Parameterizes the geometry 50
static baselines 15                                               Parameterizes the geometry then immediately undoes 50
Static Groups, example 163                                        Selects a variant from a table and parameterizes it 131
structure of a table 118                                          Selects elements or groups at sheet level 136
Suffix Texts 49                                                   Sets options for fillet behavior during parameterization 34
summary                                                           Simulates mechanism motion 50, 191
   simulation 190                                               toolset
switches 112                                                      Creating Reference Points 43
   PAR BAS 115                                                    Creating Viewboxes 41
   PAR CIR 115                                                    Drawing Grids 46
   PAR COL 114                                                    for CPI Named Groups 148
   PAR UND 116                                                    for Groups 162
Symbol                                                            for Parameterizing 50
   preparation 135                                                for Tables 120
Symbol Elements 215                                               parametric switches and command texts 112
Symbol Libraries                                                tooltray 23
   creating 11                                                  Transformable 109
Symbol with Table 136                                           TRN 109
Symbols
   load - Using CPI NamedGroups 148                             U
symbols                                                         UNDEL 109
   mistakes when loading 140                                    Undeletable 109
                                                                Under-dimensioning 36
T                                                               UNHIT 109
Table                                                           Unhittable 109
  accessing values from a - 124                                 UNPRO 109
  creating 120                                                  Unprotected 109
  Elements 119, 215                                             Untransformable 109
  structure 118                                                 Untransformable Layers 123
  Use With Parametric Symbols 136                               UNTRN 109
  Values 122
  where to place 123                                            V
tables                                                          values
  and Parametric Symbols 122                                      access - from a table 124
  Variables and Expressions 122                                 values in tables 122
tangential arcs 68                                              Variable Tolerances
TBL Command 124                                                   how to create 31
Tolerance Settings 30                                           Variables
tool                                                              save within sheet 100
  Control Parametric Elements 111                               variables 92
  Convert the selected circular arc into a tangent point          assign values to - Using in-sheet commands 96