NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
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:
NXOpen.TransientObject NXOpen.Utilities.NXRemotableObject IDisposable IMessageSink

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...
 
- Public Member Functions inherited from NXOpen.TransientObject
void Dispose ()
 Frees the object from memory. More...
 
void PrintTestData (String variableName)
 <exclude> More...
 
void PrintTestData (String variableName, int lineNumber)
 <exclude> More...
 
new string ToString ()
 Returns a String that represents the current Object. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Protected Member Functions

override void FreeResource ()
 Frees the object from memory. More...
 

Additional Inherited Members

- Properties inherited from NXOpen.TransientObject
IntPtr Handle [get]
 Handle of the internal object represented by this object. 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 ( )
inlineprotectedvirtual

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.

Implements NXOpen.TransientObject.

unsafe NXOpen.Layer.State NXOpen.Layer.StateCollection.GetState ( int  layer)
inline

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

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

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 2019 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.