Presentation is loading. Please wait.

Presentation is loading. Please wait.

Parametric Modeling Chapter 7. Training Manual December 17, 2004 Inventory #002176 7-2 Parametric Modeling Contents Dimension References Promoting Parameters.

Similar presentations


Presentation on theme: "Parametric Modeling Chapter 7. Training Manual December 17, 2004 Inventory #002176 7-2 Parametric Modeling Contents Dimension References Promoting Parameters."— Presentation transcript:

1 Parametric Modeling Chapter 7

2 Training Manual December 17, 2004 Inventory # Parametric Modeling Contents Dimension References Promoting Parameters Promoting Dimension References Promoting Feature Dimensions Parameter Manager Driven/Dependent Parameters Auxiliary Variables Parameter Functions Workshop 7-1, Pulley Model w/ Parameters

3 Training Manual December 17, 2004 Inventory # Parametric Modeling Dimension References When sketches and features are created, their properties are controlled by what are called “dimension references”. Dimension references Dimension references can be promoted to Design Parameters: –Allows parametric exchange of data. –Makes DM models more flexible to work with. –Is a key component in employing optimization (Sim) techniques.

4 Training Manual December 17, 2004 Inventory # Parametric Modeling Promoting Parameters In the details box, click to promote a dimension reference to a design parameter “D”. –Use the default name or assign a more meaningful name (no spaces, underscore OK). –Notice, the value is no longer editable from the Details window. Note: you cannot undo promotion of attached CAD parameters.

5 Training Manual December 17, 2004 Inventory # Dimension parameters: –Default sketch dimension names indicate the associated plane as well as the specific dimension. –Syntax is “Plane_reference. Dimension_type_and_number”. –Example: Using the example below, the default name for the parameter reads “XYPlane.D4”. –XYPlane: indicates on which plane the dimension is located. –D4: indicates the specific dimension is Diameter number 4. –It can be easily changed. Parametric Modeling Promoting Dimension References

6 Training Manual December 17, 2004 Inventory # Parametric Modeling Promoting Feature Dimensions Feature dimensions: –Default feature dimension names indicate the operation as well as the dimension reference number (“FD” indicates Feature Dimension). –Syntax is “Operation_type.Feature_Dimension_number”. –Using the example below the default name for the parameter reads “Extrude1.FD1”. –The name contains 2 pieces of information: Extrude1 indicates the parameter references the first extrusion created. FD1 indicates it is parameter value 1 for the extrusion (see above; FD0= rotation angle, FD1= depth, FD2 = Z axis rotation)

7 Training Manual December 17, 2004 Inventory # Parametric Modeling Parameter Manager After specifying parameters DM uses the Parameter manager to work with them. –Click the “Parameter” button on the GUI to expose parameter manager tools.

8 Training Manual December 17, 2004 Inventory # Parametric Modeling Parameter Manager… The parameter manager window exposes 3 tabs allowing access to specific parametric tools: Design Parameters tab: –Each design parameter is listed here. –Parameter values are reviewed and changed here. –Use the ‘#’ to add comments to parameter definitions.

9 Training Manual December 17, 2004 Inventory # Parameter/Dimension Assignment tab: –Lists a sequence of “left-hand-side = right-hand-side” assignments (equations) which are used to drive the model dimensions by the given Design Parameters. –The left-hand side is a reference to one of the plane/sketch or feature dimensions or a reference to an auxiliary “variable”. –The right-hand side is an arbitrary expression in +, -, *, and /, including parentheses, referencing Design Parameters (here, the syntax uses the prefix) and feature dimensions, but also numeric constants or references to auxiliary variables. –Can also use ^ for exponential, and % for modulus (remainder of x/y) –Functions (discussed later) can also be used. Parametric Modeling Parameter Manager…

10 Training Manual December 17, 2004 Inventory # Parametric Modeling Parameter Manager… –DesignModeler will evaluate the right-hand side of each expression, and use the resulting value to drive the dimension referenced in the left-hand side. –Design parameter names are preceded –Comments can be added preceded by the #. –Example (from previous page): XYPlane.R3 Indicates that a design parameter named “Hole_Size” has been defined for a radial dimension reference lying on the XY plane. A sample comment has been added to the parameter assignment.

11 Training Manual December 17, 2004 Inventory # Parametric Modeling Driven/Dependent Parameters Driven parameters are parameters which take on values based on the value of a “driving” design parameter. –Goal: given the rectangular section shown here, with dimensions S1 for height and S2 for width, drive the value of the width according to the formula, S2 = 2*S1. S2 S1 In DesignModeler we would proceed as follows: –Dimension the sketch height and width. –Create a design parameter called S1. –S1 will be our “driving” parameter. –Continued...

12 Training Manual December 17, 2004 Inventory # Parametric Modeling Driven/Dependent Parameters… –By inspecting the details for our sketch (previous page) we can see the width dimension assignment is called H1. Remember!: The “H” in H1 indicates a horizontal dimension while the “V” in V2 indicates a vertical dimension. –From the Parameter/Dimension Assignments notice the dimension assignment for S1 is: –Knowing the “internal” parameter name for our driven parameter will be “XYPlane.H1” we can type the following formula in the Parameter/Dimension Assignment tab:

13 Training Manual December 17, 2004 Inventory # Parametric Modeling Driven/Dependent Parameters… –At this point we could verify our formula by simply changing values for S1, re-generating the model, and checking to make sure the width is always equal to 2*S1. WAIT! If the regeneration of the model fails due to a mistake in our formula, we could encounter problems trying to undo the operation. –Fortunately DesignModeler contains a more elegant solution to validating parametric formulae: By moving to the “Check” tab, parametric assignments are evaluated and the result displayed. Let’s take a closer look at the Check feature...

14 Training Manual December 17, 2004 Inventory # Parametric Modeling Driven/Dependent Parameters… The check window is split into two output sections: Parameter/Dimension Assignments Design Parameter Assignments –The sections are listed as “output” since each definition is displayed according to its definition as well as its output value. –In the above case, it can be seen that our parameter “S1” is assigned a value of (design parameter section). –Similarly, our driven parameter “XYPlane.H1” evaluates to –Since we wish to drive XYPlane.H1 to the value 2*S1 we verify the value of makes sense.

15 Training Manual December 17, 2004 Inventory # Parametric Modeling Auxiliary Variables Auxiliary variables are parameters that do not directly define a sketch or feature dimension. Typically used as a constant value or factor. Example: –Here we have defined 2 design parameters –We now create a variable named “factor” using the formula shown. –Finally, we set the radius dimension “R5” equal to our variable. –Note, this example is for demonstration only. We could have simply directly defined R5 with the formula used to define the variable.

16 Training Manual December 17, 2004 Inventory # Parametric Modeling Parameter Functions Functions can be utilized to capture Design Intent and other relationships among parameters. –Functions are operations that return a single value ABS(X) EXP(X) LN(X) SQRT(X) SIN(X) (in degrees) COS(X) TAN(X) For X between –1 and +1. –ASIN(X) & ATAN(X) (return value between -90 & 90 degrees) –ACOS(X) (returns value between zero & 180 degrees) Examples… –A=acos(-1) # evaluates to –90 –B=abs(X) # evaluates to |X|

17 Training Manual December 17, 2004 Inventory # Workshop 7-1, Pulley Model w/ Parameters Goals: –Create a 3D model through sketching and extruding. –Add a revolved feature to represent the pulley’s groove. –Add a bolt hole pattern with one sketch that is based on a construction sketch. –Parameterize the model so the pulley size automatically updates the bolt hole pattern. A whole range of pulley sizes could now be simulated! Start Page setup: –Choose to create new geometry, or >File>New –At the prompt, set the length unit to millimeter

18 Training Manual December 17, 2004 Inventory # Create a sketch on the XYPlane: In Tree, click on >XYPlane to activate it Toolbar: “Look At” 1.[Sketching] > Draw > Circle Note: selecting the Sketching tab after selecting a plane changes to Sketching mode and automatically creates a new sketch if one does not exist 1 Workshop 7-1, Pulley Model w/ Parameters

19 Training Manual December 17, 2004 Inventory # Create a sketch on the XYPlane (cont’d): Select origin for center of circle 2.Put the cursor near the global origin. You should see a “P” appear near your cursor, indicating an auto-constraint will be applied. Click once with the left mouse button. Select an arbitrary point for diameter of circle 3.Click on the screen to define the radius of the circle. The actual value does not matter, as we will dimension this next. [Sketching] > Dimensions > General 4.RMB and choose Diameter dimensioning, then click on the circle. Click again on the screen to place the dimension. Details View: Dimensions > D1 5.Click on the text box value next to “D1”. This will highlight the text entry field. Enter “60” for the value of D1. This redefines the diameter as 60 millimeters Workshop 7-1, Pulley Model w/ Parameters

20 Training Manual December 17, 2004 Inventory # Extrude the circle to create a cylinder Graphics View: Select Iso View ball 6.Select the light-blue iso-ball on the triad to change to isometric view. Toolbar: Extrude 7.Select the Extrude icon on the 3D Features Toolbar. Details View: FD1, Depth (>0) 8.Select the text entry box next to “FD1, Depth (>0)” in the Details View. Enter a value of “10” to extrude the sketch 10 millimeters in the positive z-direction. Toolbar: Generate 9.Select the Generate icon on the Toolbar to generate the cylinder Workshop 7-1, Pulley Model w/ Parameters

21 Training Manual December 17, 2004 Inventory # Toolbar: “Look At” icon (XYPlane is already active) Toolbar: “New Sketch” (creates Sketch2 on XY plane) [Sketching] > Draw > Polygon n=5 10.Put the cursor near the global origin. You should see a “P” appear near your cursor, indicating an auto-constraint of “Coincident Point” will be applied. Click once with the left mouse button to define the center of the polygon. 11.Put the cursor near the positive Y axis. You should see a “C” appear near the cursor indicating the point is coincident to the Y axis. Click once with the left mouse button to define the top vertex location Workshop 7-1, Pulley Model w/ Parameters

22 Training Manual December 17, 2004 Inventory # Dimension the 5 sided polygon [Sketching] > Dimensions > Vertical 12.Dimensions the polygon as shown at right. 13.Select the text entry box next to “V2” and enter a value of 20 mm Workshop 7-1, Pulley Model w/ Parameters

23 Training Manual December 17, 2004 Inventory # Create the holes for the bolt pattern: Note: XYPlane is still active Toolbar: “New Sketch” icon (creates Sketch3 on XY plane) Toolbar: “Look At” icon [Sketching] > Draw > Circle 14.Put the cursor near the top vertex until a “P” appears near your cursor, indicating an auto-constraint will be applied. Click to define the center of the circle then drag the cursor to define the circle radius. 15.Repeat the above step at each of the (5) vertices of the polygon. ! IMPORTANT: watch for the “R” to appear next to the cursor before clicking to define each radius. This indicates the new circle is radially constrained to the previous circle. 14 ! 15 Note: if you inadvertently fail to apply auto constraints, you can undo the selection and try again, or use >Constraints tab and apply them manually. Workshop 7-1, Pulley Model w/ Parameters

24 Training Manual December 17, 2004 Inventory # Dimension the top circle: [Sketching] > Dimensions > Diameter 16.Click on the top circle created in step Specify 5mm diameter in the dimension Detail. Note: vary the dimension several times to see if all circles update to the new value. Can use >Dimensions>Animate too! Remember to make final dimension 5 mm before moving on to the next step mm Workshop 7-1, Pulley Model w/ Parameters

25 Training Manual December 17, 2004 Inventory # Extrude Sketch 3 to create the bolt holes Toolbar: Extrude Details: 18.Operation: “Cut Material” 19.Type: “Through All” 20.“Generate” Workshop 7-1, Pulley Model w/ Parameters

26 Training Manual December 17, 2004 Inventory # Create a sketch to revolve around the pulley in order to define the pulley groove 21.Click on >ZXPlane in Tree to make it active 22.Toolbar: “New Sketch” Toolbar: “Look At” icon Sketching: Draw > Rectangle –Draw a rectangle in the approximate location shown at right Workshop 7-1, Pulley Model w/ Parameters

27 Training Manual December 17, 2004 Inventory # Dimension the sketch 23.[Sketching] > Dimensions Using the dimension toolbox add dimensions as shown here Workshop 7-1, Pulley Model w/ Parameters

28 Training Manual December 17, 2004 Inventory # Toolbar: Revolve 25.Click on the Z axis in the graphics window 26.Click >Apply 27.Change the Operation to “Cut Material” 28.Change “FD1, Angle” to Generate the feature 30.Click on the Blue Triad ISO Ball as desired. Create the pulley groove by revolving the sketch > Modeling>ZXPlane > Sketch Workshop 7-1, Pulley Model w/ Parameters

29 Training Manual December 17, 2004 Inventory # With the pulley model completed as shown here we will now create a parameter for the pulley’s diameter and define several expressions to control the pulley’s features. Workshop 7-1, Pulley Model w/ Parameters

30 Training Manual December 17, 2004 Inventory # [Modeling Tree] >XYPlane > Sketch1 30.In the Sketch1 Detail check the box next to D1 This action will immediately cause a dialog box to be displayed containing the default dimension name. 31.Enter “Pulley_Dia” in the dialog box to name the parameter then OK Workshop 7-1, Pulley Model w/ Parameters

31 Training Manual December 17, 2004 Inventory # Note: we have now made the pulley diameter a parametric value. Since our goal is to “drive” the other dimensions to automatically reflect any diameter change, we’ll now create several expressions for that purpose. In particular, there are 2 dimensions we need to control, the hole pattern dimension and the pulley’s groove radius (see below). Recall the original dimensions were: Pulley_Dia = 60 Hole pattern = 20 Groove radius = 28 The desired formulae are: a)Hole pattern placement Dimension = (Pulley_Dia) / 3 b)Pulley groove diameter. –Dimension = (Pulley_Dia)/2 - 2 Workshop 7-1, Pulley Model w/ Parameters

32 Training Manual December 17, 2004 Inventory # Toolbar: Parameters 32.Click on the “Parameter/Dimension Assignments” tab to enter equations. NOTE: Your default parameter names may be different depending on the order and type of >Dimensions placed. Click on your various sketches in the Tree to display your default names in the Detail Window This equation is for the overall size of the bolt pattern that lies on the XY plane. This equation is for the groove sketch radial dimension line. This sketch lies on the ZX plane. Activate the parameter manager via the toolbar icon 32 Hole Pattern Size is Dia/3 The Groove is placed at “Dia/2 minus 2mm”. The “minus 2” insures it always cuts a 2mm deep groove. Note: Your default parameter names may be different Workshop 7-1, Pulley Model w/ Parameters

33 Training Manual December 17, 2004 Inventory # Return to the “Design Parameter” tab Experiment with new values for “Pulley_Dia” and click “>Check” tab after each change. Notice the “driven” dimensions can be viewed and evaluated with their updated values. Pulley_Dia = 150 mm Pulley_Dia = 40 mm Note: Your default parameter names may be different Workshop 7-1, Pulley Model w/ Parameters

34 Training Manual December 17, 2004 Inventory # Once again, experiment with new values for “Pulley_Dia”, this time “generating” the model after each change. Note how all model dimensions update simultaneously. This could represent an entire range of pulley sizes (part family) or a series of design variations to used in optimization. Workshop 7-1, Pulley Model w/ Parameters


Download ppt "Parametric Modeling Chapter 7. Training Manual December 17, 2004 Inventory #002176 7-2 Parametric Modeling Contents Dimension References Promoting Parameters."

Similar presentations


Ads by Google