NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::MassPropertiesBuilder Class Reference

Represents a MassPropertiesBuilder for calculating the weight of selected objects as well as informing the part that the assemblies weight property data needs to be updated on save. More...

Inheritance diagram for NXOpen::MassPropertiesBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

Public Types

enum  UpdateOptions { UpdateOptionsNo, UpdateOptionsYes, UpdateOptionsMixed }
 Specifies the Update on Save option that will be applied to all selected objects. More...

Public Member Functions

double Accuracy ()
 Returns the accuracy used for weight calculation during Update Now.
bool LoadPartialComponents ()
 Returns the load partial components flag.
NXOpen::SelectNXObjectListSelectedObjects ()
 Returns the selected objects list.
void SetAccuracy (double accuracy)
 Sets the accuracy used for weight calculation during Update Now.
void SetLoadPartialComponents (bool loadPartialComponents)
 Sets the load partial components flag.
void SetUpdateOnSave (NXOpen::MassPropertiesBuilder::UpdateOptions updateOption)
 Sets the update on save option.
void UpdateNow ()
 This will update the weight property of the selected objects immediately.
NXOpen::MassPropertiesBuilder::UpdateOptions UpdateOnSave ()
 Returns the update on save option.

Detailed Description

Represents a MassPropertiesBuilder for calculating the weight of selected objects as well as informing the part that the assemblies weight property data needs to be updated on save.


To create a new instance of this class, use PropertiesManager::CreateMassPropertiesBuilder
Default values.

Property Value

UpdateOnSave

No


Created in NX8.0.0.


Member Enumeration Documentation

Specifies the Update on Save option that will be applied to all selected objects.

Enumerator:
UpdateOptionsNo 

The Update on Save property will be turned off for all selected objects.

UpdateOptionsYes 

The Update on Save property will be turned on for all selected objects.

UpdateOptionsMixed 

The Update on Save property will not change for the selected objects.


Member Function Documentation

Returns the accuracy used for weight calculation during Update Now.


Created in NX8.0.0.

License requirements : None

Returns the load partial components flag.

This flag specifies whether partially loaded components will be fully loaded so the Update on Save setting can be applied to all parts. The commit may take longer if this flag is turned on.
Created in NX8.0.0.

License requirements : None

Returns the selected objects list.


Created in NX8.0.0.

License requirements : None

void NXOpen::MassPropertiesBuilder::SetAccuracy ( double  accuracy)

Sets the accuracy used for weight calculation during Update Now.


Created in NX8.0.0.

License requirements : None

Parameters:
accuracyaccuracy
void NXOpen::MassPropertiesBuilder::SetLoadPartialComponents ( bool  loadPartialComponents)

Sets the load partial components flag.

This flag specifies whether partially loaded components will be fully loaded so the Update on Save setting can be applied to all parts. The commit may take longer if this flag is turned on.
Created in NX8.0.0.

License requirements : None

Parameters:
loadPartialComponentsloadpartialcomponents

Sets the update on save option.

This option informs the part if it should update the assemblies weight property on save and will be applied to all fully loaded parts contained in the parts list. The option will be applied to all partially loaded parts as well if the Load Partial Components option is set to true.
Created in NX8.0.0.

License requirements : None

Parameters:
updateOptionupdateoption

This will update the weight property of the selected objects immediately.


Created in NX8.0.0.

License requirements : None

Returns the update on save option.

This option informs the part if it should update the assemblies weight property on save and will be applied to all fully loaded parts contained in the parts list. The option will be applied to all partially loaded parts as well if the Load Partial Components option is set to true.
Created in NX8.0.0.

License requirements : None


The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.