NX Open C++ Reference Guide
Public 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

Public Member Functions

NXOpen::Layer::State GetState (int layer)
 Returns the state of the specified layer. More...
 
void SetState (int layer, NXOpen::Layer::State state)
 Sets the state of the specified layer
Created in NX3.0.0. More...
 
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. More...
 
virtual ~StateCollection ()
 Frees the object from memory. More...
 
- Public Member Functions inherited from NXOpen::TransientObject
void * GetHandle ()
 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.

Constructor & Destructor Documentation

virtual NXOpen::Layer::StateCollection::~StateCollection ( )
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

Member Function Documentation

NXOpen::Layer::State NXOpen::Layer::StateCollection::GetState ( int  layer)

Returns the state of the specified layer.

Returns

Created in NX3.0.0.

License requirements : None
Parameters
layerlayer
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
layerlayer
statestate
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
categorycategory
statenew state for the category. Must not be Layer::StateWorkLayer

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