Over 1.095.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and 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
13544×
applies to: Inventor ·