AnsweredAssumed Answered

Macro to Fix Assigned Mass Properties

Question asked by Paul Ryan on Jul 22, 2014
Latest reply on Mar 18, 2016 by Deepak Gupta

I have a macro that extracts Mass Properties for each part/assembly in a master assembly.  If any part has assigned mass properties, that branch will not yield the correct mass properties.  The easiest way to fix this manually is to get the assigned mass divide by the calculated volume and created a new material with new density and assign it to this part.  I have assemblies with a lot of these assigned mass properties and it is very diffucult/time consuming to do this.  How would I do this in a macro?  I can get the calculated volume but I have trouble figuring out if Mass Properties are assigned.  I am also unsure how to assign a new material to accomplish my goal.

Outcomes