NXOpen .NET Reference  12.0.0
Public Member Functions | Protected Member Functions | List of all members
NXOpen.Layer.StateCollection Class Reference

Represents a copy of the layer states. More...

Inheritance diagram for NXOpen.Layer.StateCollection:

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...
 

Detailed Description

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

Member Function Documentation

override void NXOpen.Layer.StateCollection.FreeResource ( )
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.

Parameters
layer
Returns
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.

Parameters
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.

Parameters
category
statenew state for the category. Must not be Layer.State.WorkLayer

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.