Home > 15 Placed Objects and Libraries > Creating a Parametric Object

image\SHORTCUT.gif Back to the Main Topic

Creating a Parametric Object

Creating

Create a parametric object by the following steps:

Create an ordinary (nonparametric) object, or open an existing object source file that you want to convert to a parametric object. The object may contain any types of entities except help lines.

Add dimension lines to the dimensions that you want to parameterize. The dimension lines may overlap, but together they must completely define the variable dimensions of the object. Each dimension line must be parallel to the X, Y, or Z axis; dimensions that are not parallel to one of the axes cannot be parameterized.

Replace the text on each dimension line (the number representing the length of the dimension line) with a parameter name (You must use Dimensions, Changing dimension text, \dimut command). The name may include any combination of letters, numbers, and symbols but must not begin with a number(do not type spaces in this text—use underscore (_) instead). For example, x, x1 and length, are all legal parameter names; 1x is not. You can not have more than one main and one subdimension, e.g., Yw.

Save the source file including dimensions and parameter names in your current directory or in a library (see Library manager, \libedit).

When you place the object:

You set the dimension value that you want for each parameter name.

The object is stretched along the parameterized dimension line to the value that you have set.

You can choose to display or to hide the parameterized dimension lines in your model.

Editing

A parametric object is placed as a block in your model. This means that the data defining the object (as opposed to the source file address) is copied directly into the model. The block behaves as a single entity in your model. If you select any part of the block, for example, the whole block is selected.

The block has no link to the original source file. Therefore, if you later edit the source file it has no effect on the placed block. You must place the parametric object again to reflect the changes.

In other respects a parametric object can be edited in exactly the same ways as an ordinary object (see Creating an object).

Examples

Several examples are given to help you understand the concept of parametric objects and ways that you can use them.

In each example, a parametric object including dimension lines is illustrated on the left. The result after placing and setting the parameter values is illustrated on the right.

external dimensions 

The external dimensions of a simple object with no internal detail have been parameterized.

 

image\ebx_-861747611.gif image\ebx_1187854597.gif

 

internal dimensions 

Dimension lines have been created at all stretchable points of the design.

 

image\ebx_649471532.gif image\ebx_-1957124610.gif

overlapping dimensions

The system recognizes overlapping dimensions and stretches the object accordingly.

 

image\ebx_164192238.gif image\ebx_-1990908516.gif

 

arcs 

Be sure to assign a dimension to the radius (as opposed to diameter) of an arc. The radius is affected in all directions.

 

image\ebx_-1601791420.gif image\ebx_-1582583366.gif

identical parameters

If several parts of the object must have identical dimension values, then assign the same parameter name to each of them. When you place the object, you set the parameter value only once and each of the identical dimensions is adjusted accordingly.

 

 

image\ebx_-1614620503.gif image\ebx_1171153394.gif

fixed dimensions 

You may omit parameters in any part of the object where you want to maintain fixed dimensions.

image\ebx_-649153735.gif image\ebx_1033827834.gif

Troubleshooting

The following are examples of incorrect parameterizations. In some cases, the system may detect the error and prompt you to correct it. In other cases, the system will accept your parameter assignments but the object will be stretched in unexpected ways.

dimension missing 

Be sure to include a dimension line at each stretchable point of the object. Otherwise, the system cannot rescale the object at that point.

 

image\ebx_-1082208551.gif image\ebx_108386669.gif

contradictory dimensions

You may include redundant (overdetermined) parameters in the object—but you must assign them consistent values. The system detects if you try to assign contradictory values to overlapping dimensions. You are prompted to reassign the values, or to free one of the dimensions so that the system can assign it in a consistent way.

image\ebx_-331477139.gif image\ebx_-999601921.gif

incomplete dimensions

Include enough dimension lines to completely determine the scaling.

image\ebx_1432994164.gifimage\ebx_283732017.gif

Overlapping Dimension Lines — Limitation

You must not create more than two overlapping dimension lines that measure the same overall dimensions.

 

image\ebx_806136092.gifimage\ebx_2095657813.gif