NX Open C++ Reference Guide
|
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...
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::SelectNXObjectList * | SelectedObjects () |
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. |
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.
Specifies the Update on Save option that will be applied to all selected objects.
double NXOpen::MassPropertiesBuilder::Accuracy | ( | ) |
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
accuracy | accuracy |
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
loadPartialComponents | loadpartialcomponents |
void NXOpen::MassPropertiesBuilder::SetUpdateOnSave | ( | NXOpen::MassPropertiesBuilder::UpdateOptions | updateOption | ) |
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
updateOption | updateoption |
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