I'm trying use the Model Mass Properties in the title block of an ETO generated drawing.
What is the best way to force the physical iProperties to update in the model being placed on the drawing?
When I use IvExtGetPartMass() it returns the mass to ETO but does not update in the drawing. SO I could fake it out and create a custom iProperty in the drawing and write that value to it but I would perefer to directly reference the model property in the drawing.
I tried this code also:
InventorApplication.CommandManager.ControlDefinitions.get_Item("AppUpdateMassPropertiesCmd").Execute()
But I got the same results. The command manger approach only works if I have the assembly active which makes sense but I'm not sure how to call it before the drawing is created.
Ultimately it seems like it comes down to a timing issue. I need the physical properties updated before the drawing is created which in this application there is now addtional user interaction to create the drawing.
Thanks
If I have to this was the work around I was planning on as well. Thanks for confirming that. However, I was hoping to figure out how to accomplish it in process during the drawing creation. Ultimately I want to make sure I put a solutuon in place that will work with or without ETO controling the inventor model.
Hello,
I simply use this function
Rule Mass AsNumber
Mass = IvExtGetPartMass(Me)
End Rule
Regards
Timo