Over 1.104.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
CAD tip # 9952:
Question
A
iProperties in Inventor documents allow to manually override values of Mass and Volume. These values are also used for the automatic iProperty "Density".
Overrides of true values can be useful in many cases (purchased parts, dummy parts in assemblies), but they can also be source of problems if you e.g. forget to update or replace the overridden value.
With the following simple macro you can quickly check if the iProperties "mass" and "volume" are manually overridden in the current document (IPT part):
oPartDoc = ThisApplication.ActiveDocument oMassProps = oPartDoc.ComponentDefinition.MassProperties uom = oPartDoc.ComponentDefinition.Document.UnitsOfMeasure 'InventorVb.DocumentUpdate() voverridden = oMassProps.VolumeOverridden moverridden = oMassProps.MassOverridden voLunits = uom.GetStringFromType(uom.LengthUnits) & "^3" MsgBox ("MassOverridden=" & moverridden & vbTab & " [" & uom.GetStringFromValue(oMassProps.Mass,uom.MassUnits) & "]" & vbCrLf & "VolumeOverridden=" & voverridden & vbTab & " [" & uom.GetStringFromValue(oMassProps.Volume, volunits) & "]" , _ MessageBoxIcon.Information, _ "iProp Overrides")
Example:


Inventor
13.8.2014
13803×
this tip shared by ARKANCE experts applies to: Inventor ·
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

