- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
hope I´m in the right forum.
I want to update the mass of a part (or assembly) from an Inventor Addin.
Using Inventor 2020 and VB.net
Problem is that I want to update/calculate the mass which was changed by the user (so a "custom" mass) based on the selected material.
Already looked in the forums but the following solutions does not working:
'updating mass by instancing
Dim dMass As Double
dMass = oDoc.ComponentDefinition.MassProperties.Mass
'updating mass by using controls
Dim CmdMan As ControlDefinition
CmdMan = invApp.CommandManager.ControlDefinitions.Item("AppUpdateMassPropertiesCmd")
'CmdMan.Execute()
CmdMan.Execute2(True)
The mass stays always at the custom one which the user first has defined.
In Inventor I could press the update button after removing the mass, but how to solve this by API?
THX
Bernd
Solved! Go to Solution.