NXOpen .NET Reference
12.0.0
|
Represents a copy of the layer states. More...
Public Member Functions | |
unsafe NXOpen.Layer.State | GetState (int layer) |
Returns the state of the specified layer More... | |
unsafe void | SetState (int layer, NXOpen.Layer.State state) |
Sets the state of the specified layer More... | |
unsafe 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 More... | |
Protected Member Functions | |
override void | FreeResource () |
Frees the object from memory. More... | |
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
|
protected |
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.
unsafe NXOpen.Layer.State NXOpen.Layer.StateCollection.GetState | ( | int | layer | ) |
Returns the state of the specified layer
Created in NX3.0.0
License requirements: None.
layer |
unsafe 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 | |
state |
unsafe 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 | |
state | new state for the category. Must not be Layer.State.WorkLayer |