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

Represents a smart object. More...

Inheritance diagram for NXOpen::SmartObject:
NXOpen::DisplayableObject NXOpen::NXObject NXOpen::IFitTo NXOpen::TaggedObject NXOpen::INXObject NXOpen::INXObject NXOpen::Axis NXOpen::CAE::MeshPoint NXOpen::CoordinateSystem NXOpen::Curve NXOpen::Direction NXOpen::Offset NXOpen::Plane NXOpen::Point NXOpen::Routing::Anchor NXOpen::Routing::ControlPoint NXOpen::Routing::Port NXOpen::Scalar NXOpen::Xform

List of all members.

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.

Detailed Description

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.


Member Enumeration Documentation

Specifies when the smart object updates.

Enumerator:
UpdateOptionDontUpdate 

No update occurs.

UpdateOptionWithinModeling 

Updates within modeling (e.g.

a feature).

UpdateOptionAfterModeling 

Updates after modeling (e.g.

a dimension).

UpdateOptionAfterParentBody 

Updates after the parent body.

Specifies the smart object visibility.

Enumerator:
VisibilityOptionInvisible 

Default creation.

VisibilityOptionVisible 

visible

VisibilityOptionVisibleIfParentInvisible 

Visible if a parent is not loaded (for extract).


Member Function Documentation

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")

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")

Parameters:
otherSoother so

Sets the visibility.


Created in NX3.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR drafting ("DRAFTING")

Parameters:
visibilityvisibility

Returns the update option.


Created in NX3.0.0.

License requirements : None

Returns the visibility.


Created in NX3.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.