Share

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 moments of inertia about the reference axis with the center of gravity as origin.

Properties

Name Description
Accuracy Read-write property that gets/sets the desired level of computational accuracy of the mass property calculations.
Area Property that returns the area of the entity.
AvailableAccuracy Indicates the computational accuracy of mass properties calculations.
CacheResultsOnCompute Property that deterimines whether mass property calculations are cached with the component.
CenterOfMass Property that gets the center of mass.
IncludeCosmeticWelds Gets and sets whether cosmetic welds should be included for mass property calculations.
IncludeQuantityOverrides Gets and sets whether BOM quantity overrides should be used for assembly components to perform mass property calculations.
Mass Gets and sets the mass of the model in database units.
MassOverridden Gets and sets whether the mass value is overridden.
Type Returns an ObjectTypeEnum indicating this object's type.
Volume Gets and sets the volume of the model in database units.
VolumeOverridden Gets and sets whether the volume value is overridden.

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

Was this information helpful?