Skip to main content
7-Bedrock
April 11, 2014
Question

New to Creo - Parameter Roll-Up in Assemblies

  • April 11, 2014
  • 14 replies
  • 7480 views

Hello,

I am new to Creo and I am guessing this is a basic thing. I have created a Parameter in my Part and Sheetmetal templates for Total Estimated Weight. I have also created that same Parameter in my Assembly Template. I have relations in the Part and Sheetmetal files that allow for adding weight manually if these are purchased parts, or welded, to had weld weight. In my assembly I want to total all the "child" weights into the "parent" Total Estimate Weight Parameter, but I am not sure how to write a relation to do that. Can someone help?

Thanks,

Mike

14 replies

1-Visitor
April 11, 2014

Hi

Creo automatically calculates weight and assign this value to a system parameter if you set the mass_property_calculate = automatic in your config.pro.

The name for this parameter is pro_mp_mass

If you want to assign this value to your own parameter you can simply add the following relation to your start part.

weight = pro_mp_mass

Note that these calculation are based on the volume and density of each individual part in your assembly and not based on any weight parameter you may have added to the individual parts.

Hugo

mwick7-BedrockAuthor
7-Bedrock
April 11, 2014

Hugo,

That is my issue, I need to be able to calculate the total weight based on the user defiend parameters of the individual parts. Not all the parts in my assemblies have an acurate density or even a model. I wish I could rely on that, but unfortunately that is not always the case.

Thanks though

Mike

1-Visitor
April 11, 2014

Mike

Try this:

1. Create a real parameter (weight) in your model and specify the correct weight

2. Add the folowing relations to the part

mp_density=weight/mp_volume(“”)

/* The relation will now change the density according to your specified weight

/* This is an old relation we used previously and has not been tested with creo

Hugo

mwick7-BedrockAuthor
7-Bedrock
April 22, 2014

Thank you all for the information. I have come up with some relations and parameter mixes to be able to roll up the weight that is needed. By using the Hugo's suggestion of changing the density to affect the mass and an additional process change I can roll up the mass of parts into the actual mass of the assembly quite effectively.

Thank you all again.

Parameters:

TOTAL_EST_WT=(Real) - This is the parameter the drawing reads

EST_PURCH_WT= (Real) - use if purchase weight is known and model is "estimated" - aka non-exact solid

WELD_WT=(Real) - use this if weld weight is known - otherwise we have setup ProWeld to add to mass

------------------------------------------------------------

Relations:

/*Calculating Weight

IF EST_PURCH_WT!=0
mp_density=EST_PURCH_WT/mp_volume("")
ENDIF

IF EST_PURCH_WT!=0
TOTAL_EST_WT=EST_PURCH_WT
ENDIF

IF WELD_WT!=0
TOTAL_EST_WT=pro_mp_mass+WELD_WT
ENDIF

IF WELD_WT==0 & EST_PURCH_WT==0
TOTAL_EST_WT=pro_mp_mass
ENDIF