Skip to main content
23-Emerald III
October 12, 2016
Solved

Family Table Weight

  • October 12, 2016
  • 5 replies
  • 13163 views

I am creating some new family tables of standard hardware items and 1 column is the weight of the item.

Currently, I am saving the generic file, then opening each instance and running our Mass Weight update mapkey to get the proper weight reflected in the instance parameters.

Is there a way to automate this so it is even faster than the 8 keystrokes it now takes. It isn't the keystrokes that takes time, it is the 300+ instances to be updated that does.

Creo2 M220

Windchill 10.0 M040

Best answer by psobejko

Well, I'm seeing the same behaviour (Creo 2.0, M230) - pro_mp_mass will not update in instances, even after family table verification.

By the way, I avoid using the pro_mp_mass parameter in relations because it essentially depends on the setting of a config.pro variable mass_property_calculate.

However, why not create an analysis feature in the in your generic part and use it to get the weight?

Use the Mass Properties tool in the Analysis tab, Model Report section.

Change from "Quick" to "Feature".  Rename the feature to what you want, let's say "Mass_Prop_1"

Then, using the post-regeneration area of relations, write the relation:

weight = mass:fid_Mass_Prop_1

I tried this - family table verification will correctly update "weight" in all the instances.

5 replies

1-Visitor
October 13, 2016

Verifying the family table should calculate all the Mass properties, and all other characteristics, for all the instances.

24-Ruby III
October 13, 2016

Hi,

see attached part created in CR2 M070. Its family table contains column with parameter W. The value of parameter W is defined using post regeneration relation.

MH

1-Visitor
May 15, 2020

Martin, 

This doesn't seem to work. When I attempt to change the density or change the size of the cube part you created it doesn't regenerate and update the weight "W" for all the instances.

 

Is there something wrong perhaps a config setting?

BenLoosli23-Emerald IIIAuthor
23-Emerald III
May 15, 2020

What version of Creo are you using?

It works fine for me using post-regeneration relations and a saved mass property calculation in Creo2 and Creo4.

 

Martin's example worked fine in Creo2.

 

BenLoosli23-Emerald IIIAuthor
23-Emerald III
October 13, 2016

David - Verify does not update the weight column in my FT. I thought it should, too.

I am defining the weight parameter at the top of the relations file, before I set the size specific parameter values. I will try to move it to the bottom of the file.

Martin - Zip files are blocked on our system, but I can get them from another backdoor method ☺.

In order to have it in Post Regenration, do I put the relation weight = pro_mp_mass at the bottom fo the pro/program between the MASSPROP and ENDMASSPROP lines?

24-Ruby III
October 13, 2016

In Generic model define following...

rels.png

MH

BenLoosli23-Emerald IIIAuthor
23-Emerald III
October 13, 2016

have added weight=pro_mp_mass to a post regeneration relation, but the values in my family table are not updating. I also added mass_property_calculoate automatic to my config.pro.

Even when I opened your sample file in creo 2 M160 and added a new instance of 50, it did not update the FT W column.

psobejko1-VisitorAnswer
1-Visitor
October 13, 2016

Well, I'm seeing the same behaviour (Creo 2.0, M230) - pro_mp_mass will not update in instances, even after family table verification.

By the way, I avoid using the pro_mp_mass parameter in relations because it essentially depends on the setting of a config.pro variable mass_property_calculate.

However, why not create an analysis feature in the in your generic part and use it to get the weight?

Use the Mass Properties tool in the Analysis tab, Model Report section.

Change from "Quick" to "Feature".  Rename the feature to what you want, let's say "Mass_Prop_1"

Then, using the post-regeneration area of relations, write the relation:

weight = mass:fid_Mass_Prop_1

I tried this - family table verification will correctly update "weight" in all the instances.

BenLoosli23-Emerald IIIAuthor
23-Emerald III
October 13, 2016

Thank you, Paul.

I just ran the verify on my 300+ family table and they all updated.

14-Alexandrite
March 12, 2018

I know this is an old thread, but someone linked here recently, so I guess people are still referencing it.  I found a different solution to this problem recently, so thought I'd share.

 

We had a family table of harness connectors (just rough envelopes of their outer mold line).  Specification included all their masses, and I wanted to add this as a column to the table.

 

  • In generic models, created mass properties analysis feature set to create a parameter for the volume of the part. Named this "CALCULATE_VOLUME" and moved to footer.
  • Added relations:
    PRO_MP_ALT_VOLUME = VOLUME:FID_CALCULATE_VOLUME
    MP_DENSITY = PRO_MP_ALT_MASS / PRO_MP_ALT_VOLUME

    Note: this will fail if you haven't typed a number into "PRO_MP_ALT_MASS" and the field is still blank.  You can always create your own "MASS" & "VOLUME" parameters if you prefer, but I figured I'd use the built in ones.  You can find these in Parameters dialog by changing the pop-up on the lower right from "Main" to "Alternate mass properties".

  • In the family table, add columns for PRO_MP_ALT_MASS & PRO_MP_ALT_VOLUME, along with the dimensions changing the part geometry. Fill in the mass column with your desired values, but leave the volume column alone.
  • Click the "verify instances of the family" button, and notice that all the values in the volume column are updated!
  • There is still a problem though. Every time you use one of these instances, that analysis feature is going to want to trigger a regeneration (and be checked out of PDM system, etc)!  Not acceptable...  So, suppress that analysis feature, and comment out (/*) the first relation.  Now the instances can be used without regeneration.

If you want to update the generic to make a geometry change or add new instances, then you've got to temporarily unsupress the analysis feature, and uncomment that relation, and then do the "verification" to update all the volumes, so the density calculations will still be correct.  I put more comments in the relations to explain that to other users who may need to make updates in the future.

 

EDIT:  okay, I realize now I've posted a solution to what is sorta the opposite problem from what original question was related to.

He was trying to get the calculated mass of each instance to be properly shown as a parameter.  I was trying to get the calculated mass of each instance to properly match a given value (so they would have proper influence on higher assemblies, even though the models weren't very detailed).