MeasureBodies Class

class NXOpen.MeasureBodies

Bases: NXOpen.GenericMeasure

Represents the measurement specific mass properties for a set of bodies

To create or edit an instance of this class, use NXOpen.MeasureFaceBuilder

New in version NX4.0.0.

Properties

Property Description
Area Returns the value for area of the measurement
Centroid Returns the centroid point of the measurement
InformationUnit Returns or sets the family of units for mass properties in the information window
Mass Returns the value for mass of the measurement
MeasurementType Returns the type of the measurement
RadiusOfGyration Returns the value for radius of gyration of the measurement
Volume Returns the value for volume of the measurement
Weight Returns the value for weight of the measurement

Methods

Method Description
CreateEmbedded Creates and returns an embedded measurement expression.
CreateEmbeddedObject Creates an embedded measurement.
CreateFeature Creates and returns a measurement feature to obtain mass properties of solid bodies
Dispose Free resources associated with the measure.
Information Display information about a measurement.

Enumerations

MeasureBodiesActiveValue Enumeration Indicates the type of embedded measurement to create
MeasureBodiesAnalysisUnit Enumeration Indicates the family of units used in mass property information listings

Property Detail

Area

MeasureBodies.Area

Returns the value for area of the measurement

-------------------------------------

Getter Method

Signature Area

Returns:
Return type:float

New in version NX4.0.0.

License requirements: None.

Centroid

MeasureBodies.Centroid

Returns the centroid point of the measurement

-------------------------------------

Getter Method

Signature Centroid

Returns:
Return type:NXOpen.Point3d

New in version NX4.0.0.

License requirements: None.

InformationUnit

MeasureBodies.InformationUnit

Returns or sets the family of units for mass properties in the information window

-------------------------------------

Getter Method

Signature InformationUnit

Returns:
Return type:NXOpen.MeasureBodiesAnalysisUnit

New in version NX4.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature InformationUnit

Parameters:unitValue (NXOpen.MeasureBodiesAnalysisUnit) –

New in version NX4.0.0.

License requirements: None.

Mass

MeasureBodies.Mass

Returns the value for mass of the measurement

-------------------------------------

Getter Method

Signature Mass

Returns:
Return type:float

New in version NX4.0.0.

License requirements: None.

RadiusOfGyration

MeasureBodies.RadiusOfGyration

Returns the value for radius of gyration of the measurement

-------------------------------------

Getter Method

Signature RadiusOfGyration

Returns:
Return type:float

New in version NX4.0.0.

License requirements: None.

Volume

MeasureBodies.Volume

Returns the value for volume of the measurement

-------------------------------------

Getter Method

Signature Volume

Returns:
Return type:float

New in version NX4.0.0.

License requirements: None.

Weight

MeasureBodies.Weight

Returns the value for weight of the measurement

-------------------------------------

Getter Method

Signature Weight

Returns:
Return type:float

New in version NX4.0.0.

License requirements: None.

Method Detail

CreateEmbedded

MeasureBodies.CreateEmbedded

Creates and returns an embedded measurement expression.

Deprecated: Use CreateEmbeddedObject instead

Signature CreateEmbedded(measurementType)

Parameters:measurementType (NXOpen.MeasureBodiesActiveValue) –
Returns:
Return type:str

New in version NX4.0.0.

Deprecated since version NX5.0.1: Use NXOpen.MeasureBodies.CreateEmbeddedObject() instead.

License requirements: solid_modeling (“SOLIDS MODELING”)

CreateEmbeddedObject

MeasureBodies.CreateEmbeddedObject

Creates an embedded measurement.

The name of the measurement can be used in an expression formula.

Signature CreateEmbeddedObject(measurementType)

Parameters:measurementType (NXOpen.MeasureBodiesActiveValue) –
Returns:a tuple
Return type:A tuple consisting of (measurement, name). measurement is a NXOpen.Scalar. the measurement name is a str. the name of the measurement

New in version NX5.0.1.

License requirements: solid_modeling (“SOLIDS MODELING”)

CreateFeature

MeasureBodies.CreateFeature

Creates and returns a measurement feature to obtain mass properties of solid bodies

Signature CreateFeature()

Returns:
Return type:NXOpen.Measure

New in version NX4.0.0.

License requirements: solid_modeling (“SOLIDS MODELING”)