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. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
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.
<br> To create a new instance of this class, use @link PropertiesManager::CreateMassPropertiesBuilder PropertiesManager::CreateMassPropertiesBuilder @endlink <br>
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
bool NXOpen::MassPropertiesBuilder::LoadPartialComponents | ( | ) |
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
NXOpen::SelectNXObjectList* NXOpen::MassPropertiesBuilder::SelectedObjects | ( | ) |
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 |
void NXOpen::MassPropertiesBuilder::UpdateNow | ( | ) |
This will update the weight property of the selected objects immediately.
Created in NX8.0.0.
License requirements : None
NXOpen::MassPropertiesBuilder::UpdateOptions NXOpen::MassPropertiesBuilder::UpdateOnSave | ( | ) |
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