MassProperties Object


Description

The MassProperties object provides access to properties that provide read and write access to various mass property information.

Methods

Name Description
AchievedAccuracy Property that gets the actual accuracy achieved while computing the mass property calculations.
PrincipalMomentsOfInertia Property that gets the moments of inertia about the principal axis.
RadiusOfGyration Property that gets the radius of gyration about the principal axis.
RotationToPrincipal Gets the rotation from the active edit coordinate system of the target to the principal coordinate system.
XYZMomentsOfInertia Method that gets the moment of inertia about the reference axis with the center of gravity as origin.

Properties

Name Description
Accuracy
Area Property that returns the area of the entity.
AvailableAccuracy Indicates the computational accuracy of mass properties calculations.
CacheResultsOnCompute
CenterOfMass Property that gets the center of mass.
IncludeCosmeticWelds
IncludeQuantityOverrides
Mass
MassOverridden
Type Returns an ObjectTypeEnum indicating this object's type.
Volume
VolumeOverridden

Accessed From

AssemblyComponentDefinition.MassProperties, ComponentOccurrence.MassProperties, ComponentOccurrenceProxy.MassProperties, FlatPattern.MassProperties, PartComponentDefinition.MassProperties, SheetMetalComponentDefinition.MassProperties, WeldmentComponentDefinition.MassProperties

Samples

Name Description
Create or update custom iProperty This example creates a custom iProperty if it doesn't exist and updates the value if it does already exist. A part document must be open before runnin the sample.
Mass Properties from Part This sample demonstrates getting mass properties from a part. This sample is specific to a part document, but the MassProperties object can also be obtained from an Assembly document and from component occurrences. To run the sample you must have a part document open that contains a solid.
Computing mass properties without dirtying document This sample demonstrates getting mass properties from a part without dirtying the document (i.e. without caching the computed results in the document). This sample is specific to a part document, but the MassProperties object can also be obtained from an Assembly document and from component occurrences.

Version

Introduced in version 5