Vous êtes sur la page 1sur 14

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.

htm

Lesson

34

Lesson Objective: In this lesson, we will learn about Parameters and Relations.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (1 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

USAGE OF PARAMETERS & RELATIONS


Parameters are attributes that exist in the model. These attributes can be used to search on in PDM/
PLM systems, and are most commonly used to fill in drawing title blocks automatically. Parameters can
also be used to drive dimensional information in relations.
Relations are mathematical expressions that help you control your model. If you recall from the very first
lesson, we talked about design intent and parametric modeling. Relations can be used to ensure that
your model will react to change in a predictable manner. For example, suppose you always need your
width of your block to be half the length. Instead of modifying two dimensions every time your length
changes, you can write a relation that will automatically govern the width dimension.

PARAMETERS
To access parameters, go to Tools, Parameters from the menu bar.
To demonstrate this, we will open up the Assembly1 assembly that we saw in the last lesson. Once
open, go to Tools, Parameters. We will get the following window appear.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (2 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

The main portion of this window lists the current parameters and their values and properties in table
format. You can edit many of the property cells directly in this table.
To add a parameter, use the green + button at the bottom, and then fill in the information. To remove a
parameter, select it in the table, and then use the red - button.
Along the bottom, there is a pull-down field and two buttons. The pull-down field allows you to look at the
reported and alternate mass property parameters. The following figure shows the Alternate Mass
Properties.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (3 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

The following window shows the Reported Mass Properties.

These are system parameters that are derived from mass property calculations.
Switching over to another part
Currently, we are looking at the parameters defined in the assembly file. To view the parameters from a
different model, or to look at component parameters, etc., we would use the pull-down field in the upper
file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (4 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

left of the model, as shown in the next figure.

We will select on Part, and then we are instantly placed into the working window to select the part from
the model of which we wish to view the parameters. We will pick on one of the screws to access
Component3s parameters. The window now looks like the following.

We can see the type as Part, and then name COMPONENT3 listed at the top now.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (5 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

Parameter Properties
To view all of the properties in a single window for a selected parameter, use the Properties button in the
lower right corner of the window. This would bring up the following window (shown for the
APPROVED_DATE) parameter.

You can edit the data in this window as well.


Customizing the table
The last icon in the lower right corner is used to customize the table display for this window. When you
click on this icon, it brings up the following.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (6 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

You can remove columns, reorder them, and change their size.

RELATIONS
Relations are accessed in the Menu Bar using Tools, Relations. To demonstrate this, we will open up
the Plate3 model that we worked with a while ago. It currently looks like the following.

Dimension Symbol Editing


Before we add relations to this block, we should rename the dimension symbol for any dimension that is
going into the relation so it makes more sense when viewing the relation later.
For example the outer shape of the plate is currently a 10W x 5D x 0.5H rectangular block. The
dimension symbols for this are: d4 x d3 x d2. Unless you are very familiar with this model, you would not
know which one of these is the height or the depth or the width. Therefore, it makes more sense to
rename these to the following:
Current Symbol

New
Symbol

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (7 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

D4
D3
D2

Width
Depth
Height

To do this, we will first go to the model tree and select the first Extrude feature. Once selected, hold
down the right mouse button and select Edit. The dimensions for this block will appear on the model, as
shown in the next figure.

Single click on the 10.000 dimension (Width) so it highlights in red, and then right click and select
Properties. This brings up the following window.

This is the Dimension Properties window, which can be used to change tolerances, edit the text, change
text style, change dimension type (basic, inspection, etc.), and change dimension symbol.
We are going to go to the second tab, entitled Dimension Text, and then edit the Name field value from
file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (8 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

d4 to Width, as shown in the next figure.

Click on OK, and then repeat this for the other two dimensions. Be sure to rename the 0.5 dimension to
Height (from d2), and the 5.0 dimension to Depth (from d3). We are also going to rename the hole
dimensions as shown in the next figure.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (9 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

Once all of your dimension symbols are renamed, we will create some relations so all we have to modify
is the width of the block and everything will update.
Go to Tools, Relations, and you will see the following window.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (10 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

There is a default relation to calculate the MASS parameter based on a mass property calculation result.
We will start a new line at the bottom, and then start to enter our relations. We are going to enter the
following.
Depth=Width/2
Height=Depth/10
These two relations will govern the size of the plate itself, always making the depth half the width, and the
height 1/10th the size of the depth. Now, we will enter relations governing the X-Locations of the holes.
X1_Location=Width/10
X2_Location=X1_Location
X3_Location=Width-X1_Location
X4_Location=X3_Location
X5_Location=Width/2
This sets all of the small holes equally away from their closest edge, at a distance 1/10th the size of the
width. The larger hole in the middle is placed at the halfway point along the width. Now we will enter the
Y-Locations of the holes.
Y1_Location=X1_Location
Y2_Location=Depth-Y1_Location
Y3_Location=Y2_Location
Y4_Location=Y1_Location
Y5_Location=Depth/2
This makes the small holes equally away from their closest edge, at a distance equal to the X-Location
distance. The larger hole in the middle is placed at the halfway point along the Depth. Our final entries
file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (11 of 14)1/9/2005 8:53:07 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

will govern the diameter of the holes.


Dia1=X1_Location*.75
Dia2=Dia1
Dia3=Dia1
Dia4=Dia1
Dia5=Dia1*2
This makes the diameters of the small holes the size of the X-Location distance. The larger hole is
twice as large as the smaller holes.
The relations window will look like the following figure when complete.

Had we not remembered the dimension names, we could have picked a feature from the model, and its
dimensions would have showed up on the screen, as shown for the extrude feature.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (12 of 14)1/9/2005 8:53:08 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

The icons at the top of the relations window provide some additional functionality for testing the relation,
reporting values, etc. We will click on OK and then regenerate the model to see the change. Our model
now looks like the following figure.

Save and close this model.

LESSON SUMMARY
Use Parameters and Relations to capture design intent and model attribute information. Remember to
always rename dimension symbols that you wish to use in relations so that individuals reading the
relations later have an idea of what you are trying to do with them.

EXERCISES
Open up the Draft1 part that we worked on earlier. If you recalll, it has a pattern of ribs around the
inside. Currently, there are 5 ribs equally spaced at 72 degrees.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (13 of 14)1/9/2005 8:53:08 AM

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm

We are going to create a relation for this rib pattern that, based on the number of ribs specified, keeps
the ribs evenly spaced around the center axis. Test your relation with a rib count of 10, as shown below.

file:///C|/Documents and Settings/Administrator/Desktop/PROENGINEER WILDFIRE 3.0/parameter.htm (14 of 14)1/9/2005 8:53:08 AM

Vous aimerez peut-être aussi