Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I've written a small VBA script to check if an update or mass properties need to be updated in the model for a part or an assembly.
However, I can't seem to find anything in the API for checking if the mass update needs to be run. I have already tried returning the value of the mass, which does work but the mass remains as "N/A".
Any help appreciated. Existing code below.
Private Sub CheckUpdatesRequired() 'set the active document Dim oDoc As Document Set oDoc = ThisApplication.ActiveDocument 'If an update is required send this message to the userform If oDoc.RequiresUpdate = True Then TextBox1.Value = TextBox1.Value & "An update is required" & vbNewLine End If 'insert code here to inform if the "Update Mass" button needs to be pressed End Sub
Dan Machen
Autodesk Inventor 2019 Certified Professional
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Ideas that need support:
Circular / Rectangular Point Matrix
Allow Axis & Plane Selection on Rectangular / Circular pattern
Graphical iLogic Programming
Autodesk Inventor 2019 Certified Professional
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
Ideas that need support:
Circular / Rectangular Point Matrix
Allow Axis & Plane Selection on Rectangular / Circular pattern
Graphical iLogic Programming
Solved! Go to Solution.