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!

Part Cost Analysis

  • Thread starter Thread starter B_Spline
  • Start date Start date
Status
Not open for further replies.
B

B_Spline

Guest
Using model mass properties data from an model analysis, is there a way to calculate part cost and attach this into a note on the part.



I would like to attach part cost data to the note similar to Volume and have it recalculate when the part changes. See the attached screen shot of the volume calculation for the note.



Is there a way to add formulas to notes?

I have tried adding something like:

part cost = {1:&VOLUME:FID_5657} * .00025



but this didn't work. It doesn't appear to me that adding math function is viable in notes. Am I doing something wrong? Can this be done elsewhere and still get the output into a note?



Thanks for Replying.



View attachment 85
 
It's real easy-- do it in Relations. Create a parameter of type real number called COST. Write the relation:



COST = VOLUME:FID_featnumber * .00025



Then call the parameter out in the note by using &COST. (The ampersand lets Pro E know what follows next is a parameter whose value needs to be extracted and printed instead of the text COST.)



David Martin

Torgon Industries
 
Oh yeah, in order to have the volume and cost recalculated if the model ever changes, you need a license for BMX and you need to create a Datum Analysis Feature. It looks like you've already done that, since you wrote VOLUME in the correct format.
 
Create a parameter called COST and write the relation:



COST=mp_volume()*0.00025



You have to recompute this after every regen but you definitely don't need BMX...



You can also write in your note:



&COST[.2] instead of &COST



where 2 is the number of dp you want (could be 0,1,2,3...).
 
I was having problems getting this to work but Duh, I didn't try one thing and that was toggling my dimensions. When I did that everthing worked as stated above.



Many Thanks for the Tip!!
 
I have manages to get this function working and am very pleased with the results.



Can I do the same with the CofG results?, also is there a list of function names I can use?.



Many Thanks
 
System Parameters Used to Determine Mass Properties



The following system parameters are used to determine the mass properties of a part or assembly within a relation:



mp_mass (path)

for mass



mp_volume (path)

for volume



mp_surf_area (path)

for surface area



mp_cg_x (path, coord_sys, path)

for x-coordinate of center of gravity



mp_cg_y (path, coord_sys, path)

for y-coordinate of center of gravity



mp_cg_z (path, coord_sys, path)

for z-coordinate of center of gravity



pro_unit_mass

Sets the default units for mass for all new parts and assemblies (unit_point, unit_ounce, unit_ton, unit_gram, unit_kilogram, unit_tonne)



pro_unit_length

Sets the default length units for all new parts and assemblies (unit_inch, unit_foot, unit_mm, unit_cm, unit_m)



pro_unit_sys

Specifies the default system units for new models





- where
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top