NX Open C++ Reference Guide
|
Represents a smart object. More...
Public Types | |
enum | UpdateOption { UpdateOptionDontUpdate, UpdateOptionWithinModeling, UpdateOptionAfterModeling, UpdateOptionAfterParentBody } |
Specifies when the smart object updates. More... | |
enum | VisibilityOption { VisibilityOptionInvisible, VisibilityOptionVisible, VisibilityOptionVisibleIfParentInvisible } |
Specifies the smart object visibility. More... | |
Public Member Functions | |
void | Evaluate () |
Evaluate a smart object. | |
void | RemoveParameters () |
Removes the smart object parameters. | |
void | ReplaceParameters (NXOpen::SmartObject *otherSo) |
Edit a smart object by replacing its parameters using parameters of other smart object of the same class. | |
void | SetVisibility (NXOpen::SmartObject::VisibilityOption visibility) |
Sets the visibility. | |
NXOpen::SmartObject::UpdateOption | Update () |
Returns the update option. | |
NXOpen::SmartObject::VisibilityOption | Visibility () |
Returns the visibility. |
Represents a smart object.
For more information, refer to the smart object documentation in the NXOpen API Reference Guide.
This is an abstract class, and cannot be instantiated
Created in NX3.0.0.
void NXOpen::SmartObject::Evaluate | ( | ) |
Evaluate a smart object.
Typically smart object should be logged for update and final update should be performed at correct time so that smart object is processed with all its dependencies. In some situations, such as after replacing parameters of smart object, if it needs to be used immediately without performing final update, it may be forced to evaluate. When evaluate is called, smart object is evaluated based on current state of its parents and its children are not affected.
Created in NX5.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
Reimplemented in NXOpen::Plane.
Removes the smart object parameters.
Created in NX3.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
void NXOpen::SmartObject::ReplaceParameters | ( | NXOpen::SmartObject * | otherSo | ) |
Edit a smart object by replacing its parameters using parameters of other smart object of the same class.
Other smart object is destroyed after editing.
Created in NX5.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
otherSo | other so |
void NXOpen::SmartObject::SetVisibility | ( | NXOpen::SmartObject::VisibilityOption | visibility | ) |
Sets the visibility.
Created in NX3.0.0.
License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")
visibility | visibility |
Returns the update option.
Created in NX3.0.0.
License requirements : None
Returns the visibility.
Created in NX3.0.0.
License requirements : None