Share

PartComponentDefinition.MassProperties Property

Parent Object: PartComponentDefinition

Description

Mass properties for this ComponentDefinition.

Syntax

PartComponentDefinition.MassProperties() As MassProperties

Property Value

This is a read only property whose value is a 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.
Work point at mass center This sample demonstrates creating a fixed work point and edit its position. It does this by computing the the center of mass of the part and creating a work point at that position. Subsequent runs of the sample reposition the work point at the new center of mass.

Version

Introduced in version 5

Was this information helpful?