Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Density show in drawing notes.

  • Thread starter Thread starter pjsmith
  • Start date Start date
Status
Not open for further replies.
P

pjsmith

Guest
How do show Density in drawing notes from the Mass Properties?
 
1. Create Parameter MASS

2. Relationship MASS = mp_mass()

3. Setup>Density Give the part a density

4. Analysis>Model Analysis>Part Mass Properties

5. Regen the part from beginning using Utilities/Model Player (make sure Regen Features is chosen)

6. In the drawing: PART WEIGHT = &MASS



Follow steps 4 and 5 any time the part changes. Also choose View>Update>All Sheets after steps 4 and 5 if the model changes.
 
Don,



I believe you may have misunderstood what I was requesting.



If under Set-Up, Density...I input a density...I would like to set up a parameter (&density) to have the .prt density show up in the notes of my drawing. How do you set up a parameter to have the notes reflect the inputed value for density?



Thanks,



Paul...
 
Create a parameter called Density. Create a relationship Density=mp_density

Add &density to your drawing.
 
I have created a parameter called Density.



I have created a relation density=mp_density('')



I did put a note in the drawing Density=&density. It doesn't work.
 
Try PRO_MP_DENSITY and don't forget to change the format of the decimal.



bp
 
If you are working in mm the &density will show up as 0.00. If you want the density to show up as comparative to water you will have density=mp_density()/2.204623E-06, assuming you are in mm. I am in 2001, so the variables for Wildfire may have changed?
 
BP,



I tried the relation density=pro_mp_density()[.4] That doesn't work either. Do you know a way to get the density to show up on the drawing?



What do you mean by make sure you change the format of the decimal? Is this what donha was refering to?



Paul...
 
Just because you wrote wrong the relation pin part. Use:



density = mp_density



and NOT



density = mp_density()



-Hora
 
Regen the part from the beginning to make sure all variables have been filled. Use the model player and regen from beginning with Regenerate Features selected. Also density=mp_density*2.204623E-06 to convert to specific density. If you are working in mm, your density will be .0000nnnn or something like that.
 
To all,



Hora's solution worked. The problem was I didn't have spaces on either side of the equal sign. However, additionally I ran Utilities and Model Player and marked the Regenerate Features. Changed two variable at once.



I'm sorry it was such a simple solution and didn't know to have spaces on either side of the equal sign.



Regards,



Paul...
 
Paul,



The spaces are making no difference in relations. I usually add them beacause is easier to read the code. The problem is the quotes and brackets. You don't need them as in the MASS relation.



Anyway sou solved your problem.



-Hora
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top