NX Open C++ Reference Guide
|
Represents a copy of the layer states. More...
Public Member Functions | |
NXOpen::Layer::State | GetState (int layer) |
Returns the state of the specified layer. | |
void | SetState (int layer, NXOpen::Layer::State state) |
Sets the state of the specified layer Created in NX3.0.0. | |
void | SetStateOfCategory (NXOpen::Layer::Category *category, NXOpen::Layer::State state) |
Sets the state of every layer in the category to the specified state, except the work layer Created in NX3.0.0. | |
virtual | ~StateCollection () |
Frees the object from memory. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Represents a copy of the layer states.
You can manipulate the StateCollection without affecting the actual layer states in the part. Your changes to the StateCollection will not be applied to the part until you apply them through the method Layer::LayerManager::SetStates .
Created in NX3.0.0.
|
virtual |
Frees the object from memory.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Created in NX3.0.0.
License requirements : None
NXOpen::Layer::State NXOpen::Layer::StateCollection::GetState | ( | int | layer | ) |
Returns the state of the specified layer.
layer | layer |
void NXOpen::Layer::StateCollection::SetState | ( | int | layer, |
NXOpen::Layer::State | state | ||
) |
Sets the state of the specified layer
Created in NX3.0.0.
License requirements : None
layer | layer |
state | state |
void NXOpen::Layer::StateCollection::SetStateOfCategory | ( | NXOpen::Layer::Category * | category, |
NXOpen::Layer::State | state | ||
) |
Sets the state of every layer in the category to the specified state, except the work layer
Created in NX3.0.0.
License requirements : None
category | category |
state | new state for the category. Must not be Layer::StateWorkLayer |