Modifier and Type | Method and Description |
---|---|
void |
applyMoveToLayerToOwningParts(int newLayer,
DisplayableObject[] objectArray)
Move the selected objects to the specified layer in their Owning Parts.
|
void |
changeStates(StateInfo[] stateArray)
Changes the states of the specified layers in the part.
|
void |
changeStates(StateInfo[] stateArray,
boolean fitAll)
Changes the states of the specified layers in the part.
|
void |
copyObjects(int newLayer,
NXObject[] objectArray)
Copies objects to the specified layer
Objects of class Component ,
nxopen.DatumAxis , DatumPlane
Edge , Face ,
nxopen.features.Feature or View ,
may not be copied. |
NXObject[] |
getAllObjectsOnLayer(int layer)
Returns all objects on the specified layer.
|
State |
getState(int layer)
Gets the state of the specified layer.
|
StateCollection |
getStates()
Gets the states for all layers in the part.
|
StateInfo[] |
getVisibilitiesInView(View view)
Gets the visibility of all layers in a specified view.
|
void |
moveDisplayableObjects(int newLayer,
DisplayableObject[] objectArray)
Moves displayable objects to the specified layer.
|
void |
resetViewVisibilityToGlobal(View view)
Resets a view's layer visibility to the global states.
|
void |
setObjectsVisibilityOnLayer(View view,
StateInfo[] stateArray,
boolean doUpdate)
Sets specified layer(s) visibility in a specified view.
|
void |
setState(int layer,
State state)
Sets the state of the specified layer.
|
void |
setState(int layer,
State state,
boolean fitAll)
Sets the state of the specified layer.
|
void |
setStates(StateCollection stateCollection)
Sets the states for all layers in the part.
|
void |
setStates(StateCollection stateCollection,
boolean fitAll)
Sets the states for all layers in the part.
|
void |
setWorkLayer(int newWorkLayer)
Sets the work layer.
|
int |
workLayer()
Returns the work layer.
|
void setWorkLayer(int newWorkLayer) throws NXException, RemoteException
newWorkLayer
- Layer number for the new work layerNXException
RemoteException
int workLayer() throws NXException, RemoteException
NXException
RemoteException
void changeStates(StateInfo[] stateArray, boolean fitAll) throws NXException, RemoteException
stateArray
- Indicates the new states for the layers.fitAll
- Whether to refit the view to what is visible after the layer states have been changedNXException
RemoteException
void changeStates(StateInfo[] stateArray) throws NXException, RemoteException
stateArray
- Indicates the new states for the layers.NXException
RemoteException
StateCollection getStates() throws NXException, RemoteException
NXException
RemoteException
void setStates(StateCollection stateCollection, boolean fitAll) throws NXException, RemoteException
stateCollection
- The states for all layers in the part.fitAll
- Whether to refit the view to what is visible after the layer states have been changedNXException
RemoteException
void setStates(StateCollection stateCollection) throws NXException, RemoteException
stateCollection
- The states for all layers in the part.NXException
RemoteException
void setState(int layer, State state) throws NXException, RemoteException
layer
- state
- NXException
RemoteException
void setState(int layer, State state, boolean fitAll) throws NXException, RemoteException
layer
- state
- fitAll
- Whether to refit the view to what is visible after the layer state has been changedNXException
RemoteException
State getState(int layer) throws NXException, RemoteException
layer
- NXException
RemoteException
void moveDisplayableObjects(int newLayer, DisplayableObject[] objectArray) throws NXException, RemoteException
nxopen.displayableObject#setLayer
does not correct
the display of the objects and does not work as expected for sketches and
components, because it does not move the members of the sketch or component. CAEEdge
,
CAEFace
, CAEVertex
,
Edge
, Face
or
View
may not be moved. newLayer
- The layer to move the objects toobjectArray
- The objects to be movedNXException
RemoteException
void applyMoveToLayerToOwningParts(int newLayer, DisplayableObject[] objectArray) throws NXException, RemoteException
CAEEdge
,
CAEFace
, CAEVertex
,
Edge
, Face
or
View
may not be moved.
newLayer
- The layer in the owning parts to move the objects toobjectArray
- The objects to be movedNXException
RemoteException
NXObject[] getAllObjectsOnLayer(int layer) throws NXException, RemoteException
layer
- NXException
RemoteException
void copyObjects(int newLayer, NXObject[] objectArray) throws NXException, RemoteException
Component
,
nxopen.DatumAxis
, DatumPlane
Edge
, Face
,
nxopen.features.Feature
or View
,
may not be copied. newLayer
- The layer to move the objects toobjectArray
- The objects to be copiedNXException
RemoteException
StateInfo[] getVisibilitiesInView(View view) throws NXException, RemoteException
view
- The view object being queriedNXException
RemoteException
void setObjectsVisibilityOnLayer(View view, StateInfo[] stateArray, boolean doUpdate) throws NXException, RemoteException
view
- The view object being modifiedstateArray
- The new states for the layers.
The given states may only be
Layer.State#VISIBLE
and
Layer.State#HIDDEN
.doUpdate
- Whether to update the view(s) after the layer states have been changedNXException
RemoteException
void resetViewVisibilityToGlobal(View view) throws NXException, RemoteException
view
- The view objectNXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.