Anchor |
---|
| Rary20437P1227Rary20437P |
---|
| 1227 |
---|
|
Available in DoubleCAD TurboCAD LTE Pro onlyThis section explains how to create a parametric part from within
DoubleCADTurboCAD LTE.
Note:
You can also create a parametric part using a script. There are four basic steps in this process:
- creating the object(s) themselves
- saving the objects as a part and defining parameters
- defining relationships between parameters
- inserting the part
Step 1- Creating the Object(s)In this example, a part will be created from a polyline with holes, made 3D by extruding it. The objects will be created using different sizes than the actual part that will be saved, to show that parameters can be used for accurate sizing.
- In this example, Auto Constraints is turned on. This is so that dimensions can be used as parameters, and so that geometric relationships between objects will be maintained when parameters are changed.
Image Removed
Image Added----Note: For details on constraining objects, see Auto Constraint. - Create a polyline using two identical linear segments and two tangent arc segments. Image Added Image Removed
- Create two circles concentric with the polyline arcs. The circles can be different sizes now, but in the eventual parametric part, the circles will be identical.
Image Removed Image Added - Apply Concentric constraints so that the circles will remain concentric with the polyline arcs. Image Added Image Removed
- Add a Linear Dimension and a Radial Dimension to measure the polyline. Image Added Image Removed
- Activate Simple Extrude, and make sure Use Compound Profile is active. Select the polyline, then press Shift and select two circles. Click to define the height, or enter an exact value. Image Added
...
Step 2- Defining the Part and its ParametersNow a part will be created from this object. There will be five parameters defined for this part:
H1 = radius of one internal circle
H2 circleH2 = radius of the other internal circle
R circleR = radius of the polyline arc
W arcW = length of the linear polyline segment
D segmentD = extrude depth
- Select Parametric Part Manager.
- Use a selection window to select all of the objects. Image Added Image Removed
- The Selection Info palette opens, and the part is temporarily called "Part Candidate." Expand this item to see what the part contains.
Image Removed Image Added - The parameters H1 and H2 are for the two internal circles. Highlight the first Circle in the palette.
Image Removed
The circle is also highlighted on the model.
Image Removed
Image Added - The radius of this circle is found under "Metrics," at the bottom of the palette. Right-click on the Radius field.
Image Removed Image Added - Enter the parameter name "H1," then click OK.
Image Removed
Image Added----Note: You are not restricted to defining only geometric parameters. You can also define material, pen color, line width, etc. as parameters. - Next, highlight the other Circle.
Image Removed
The other circle is now highlighted on the model.
Image Removed Image Added - Right-click on the Radius field. Image Added Image Removed
- Enter the parameter name "H2."
Image Removed Image Added - For the next parameter, highlight the Radial Dimension.
Image Removed
The dimension of the polyline arc is now highlighted.
Image Removed
Image Added - The value of this dimension is found under "Constraints." Right-click on this field.
Image Removed Image Added - Name this parameter "R." Image Added Image Removed
- Next is the Linear Dimension. Image Added Image Removed
- This value is also found under "Constraints." Name its parameter "W."
Image Removed Image Added - The last parameter is the depth of the part. Highlight "Simple Extrude." Image Added Image Removed
- This parameter is called "Height" and is found under "Simple Extrude." Right-click on this field. Image Added Image Removed
- Name this last parameter "D."
Image Removed Image Added - Now that all five parameters are defined, select Finish from the local menu or Inspector Bar.
Image Removed
Image Added----Note: There are other options in the local menu and Inspector Bar. Relocate Reference Point enables you to define the point by which the part will be inserted. For circular parts, Set Assembly Axis can be used to set an axis for assembly using Assemble by Axis (see Assemble by Axis).
Step 3- Defining Relationships between Parameters- The Parametric Part window is now open, in which you can define relationships between the parameters you've defined. First, enter a name for the part.
Image Removed
!worddaved6e4208e927156a92c3b1c47ccc6c0f.png|height=94,width=203!The eventual part will be defined by only three parameters: the hole radius, distance between hole centers, and depth. All other parameters will be functions of these three. - The names of the parameters currently listed don't tell the user exactly what they are for, so we can add parameters with more obvious names. To do this, right-click on the first parameter on the list, and select Insert Parameter.
Image Removed Image Added - Name this parameter "HoleRad." Image Added Image Removed
- "HoleRad" is now first parameter on the list. Under "Value," enter the default radius that will be used when you first insert the part.
Image Removed Image Added - Under "Type," specify "Linear."
Image Removed Image Added - Create another parameter for the center-to-center distance between the holes. This parameter can be named "CenToCen." Specify an initial "Value" and "Type." Image Added Image Removed
- "H1" and "H2" will be have the same value as "HoleRad," and therefore do not need to be displayed as parameters you can edit when inserting the part. So for "H1," uncheck the box under "Visible."
Image Removed Image Added - Under "Value" next to "H1," replace the number with "HoleRad."
Image Removed Image Added - Do the same for "H2." Image Added Image Removed
- Make "R" invisible as well, and define its value as twice the hole radius.
Image Removed Image Added - Make "W" invisible, and set its value equal to "CenToCen."
Image Removed Image Added - Now the three parameters needed for the part are defined. They are "HoleRad," "CenToCen," and "D." Click OK to close the Parametric Part window.
Step 4- Inserting the Part- Continue in the file in which you defined the part. Select Insert / Parametric Part. Select the part you just defined.
Image Removed
Image Added----Note: Load from File can be used to insert parametric parts saved in other files. - Click to insert the part. The inserted part is shown to the right of the original geometry. Note that the two holes are equal, and that the polyline arc's radius is twice as large as the hole radius. Image Added Image Removed
- Select the part, and it appears in the Selection Info palette, with its three parameters available for editing. The initial values are the ones you set in the Parametric Part window.
Image Removed Image Added - Increase "HoleRad."
Image Removed
The internal holes updates, as well as the overall radius of the part, which was set to be twice as large as the hole radius.
Image Removed
Image Added - Increase the "CenToCen" parameter value.
Image Removed
The distance between holes updates, while the radius values remain the same.
Image Removed Image Added - The last value to change is "D." Image Added Image Removed
This changes the depth of the extruded part.
Image Removed
Editing a Parametric SymbolBefore loading the part, you can still edit it. Click the local menu option Edit Existing Symbol.
Image Removed Image Added
You can edit either the content or the parameters. When finished, click OK and the part is saved with the changes.