public interface Network extends NXObject
Positioning.Positioner#establishNetwork
to create an instance of this class. Modifier and Type | Interface and Description |
---|---|
static class |
Network.ObjectStatus
Specifies the solver status of a movable object.
|
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat
Modifier and Type | Method and Description |
---|---|
void |
addConstraint(Constraint constraint)
Add a
Constraint to the network. |
void |
addMovableObject(NXObject movableObject)
Add a movable object to the network.
|
void |
applyToModel()
Applies the current network state to the model.
|
void |
beginDrag()
Notify the network that a sequence of drag operations is about to
begin.
|
Component |
displayComponent()
Returns
the
Assemblies.Component in which the display is changed
by solving the network. |
void |
dragByRay(Point3d point,
Vector3d direction)
Move objects which have been added to the network using
Positioning.Network#addMovableObject . |
void |
dragByTransform(Vector3d translation,
Matrix3x3 rotation)
Move objects which have been added to the network using
Positioning.Network#addMovableObject . |
void |
dragByTranslation(Vector3d translation)
Move objects which have been added to the network using
Positioning.Network#addMovableObject . |
void |
emptyMovingGroup()
Remove all elements from the moving_group.
|
void |
endDrag()
Notify the network that a sequence of drag operations has
ended.
|
Network.ObjectStatus |
getMovableObjectStatus(NXObject movableObject)
Returns the solver status of a movable object.
|
boolean |
isReferencedGeometryLoaded()
Are the necessary objects loaded so that all connected constraints can be
included during a drag or solve ?
|
void |
loadReferencedGeometry()
Load the necessary objects so that all connected constraints can be
included during a drag or solve.
|
boolean |
moveObjectsState()
Returns
the move objects state for the network.
|
boolean |
nonMovingGroupGrounded()
Returns
the grounded state of non-moving_group objects.
|
void |
removeAllConstraints()
Remove all
Constraint s which have been explcitly added
to the network. |
void |
removeConstraint(Constraint constraint)
Remove a
Constraint from the network. |
void |
removeMovableObject(NXObject movableObject)
Remove a movable object from the network.
|
void |
resetDisplay()
Returns the display objects to their model positions.
|
void |
setDisplayComponent(Component displayComponent)
License requirements: assemblies ("ASSEMBLIES MODULE") . |
void |
setMoveObjectsState(boolean moveObjectsState)
License requirements: assemblies ("ASSEMBLIES MODULE") . |
void |
setMovingGroup(NXObject[] movableObjects)
Set the elements of the moving_group.
|
void |
setNonMovingGroupGrounded(boolean ground)
License requirements: assemblies ("ASSEMBLIES MODULE") . |
void |
solve()
Solves the constraint network.
|
deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setReferenceAttribute, setReferenceAttribute, setTimeAttribute, setTimeAttribute, setTimeUserAttribute, setTimeUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttributeLock
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
void addConstraint(Constraint constraint) throws NXException, RemoteException
Constraint
to the network.
constraint
- The Constraint
to be addedNXException
RemoteException
void removeConstraint(Constraint constraint) throws NXException, RemoteException
Constraint
from the network. A constraint
explicitly removed by this method may still included in a network solve
if connected to another constraint or movable object which has been
explicitly added.
constraint
- The Constraint
to be removedNXException
RemoteException
void removeAllConstraints() throws NXException, RemoteException
Constraint
s which have been explcitly added
to the network. Those constraints connected to explcicitly added movable
objects will still be include in a network solve.
NXException
RemoteException
void addMovableObject(NXObject movableObject) throws NXException, RemoteException
Positioning.Network#dragByRay
,
Positioning.Network#dragByTransform
and
Positioning.Network#dragByTranslation
.
movableObject
- An NXObject
to be movedNXException
RemoteException
void removeMovableObject(NXObject movableObject) throws NXException, RemoteException
Positioning.Network#dragByRay
,
Positioning.Network#dragByTransform
and
Positioning.Network#dragByTranslation
, though it
may still be moved indirectly if constrained to other movable objects.
movableObject
- An NXObject
to be removed from the networkNXException
RemoteException
void applyToModel() throws NXException, RemoteException
NXException
RemoteException
void solve() throws NXException, RemoteException
NXException
RemoteException
void setMoveObjectsState(boolean moveObjectsState) throws NXException, RemoteException
moveObjectsState
- NXException
RemoteException
boolean moveObjectsState() throws NXException, RemoteException
NXException
RemoteException
void resetDisplay() throws NXException, RemoteException
NXException
RemoteException
Network.ObjectStatus getMovableObjectStatus(NXObject movableObject) throws NXException, RemoteException
movableObject
- An NXObject
positioned by the networkNXException
RemoteException
Component displayComponent() throws NXException, RemoteException
Assemblies.Component
in which the display is changed
by solving the network. The display component can be null if display
changes are made in the part of the network.
The prototype of the display component should be the part containing the
network.
NXException
RemoteException
void setDisplayComponent(Component displayComponent) throws NXException, RemoteException
displayComponent
- The component in which the constraints are displayed. Can be NULL.NXException
RemoteException
void beginDrag() throws NXException, RemoteException
Positioning.Network#dragByRay
,
Positioning.Network#dragByTransform
or
Positioning.Network#dragByTranslation
.
Following a drag, and before any other changes to a network
are made, Positioning.Network#endDrag
should be called.
NXException
RemoteException
void dragByRay(Point3d point, Vector3d direction) throws NXException, RemoteException
Positioning.Network#addMovableObject
.
Constraints are honored during the drag so that other
objects may also move as a result of this call.
On the first call to this method, a notional point is added to each of
the objects to be dragged. On subsequent calls, this notional point,
and hence the dragged object, is kept as close as possible to the ray
determined by point and direction. If there are no constraints then the
point will stay on the ray.
Positioning.Network#beginDrag
and
Positioning.Network#endDrag
.
point
- A point on the raydirection
- The direction of the rayNXException
RemoteException
void dragByTransform(Vector3d translation, Matrix3x3 rotation) throws NXException, RemoteException
Positioning.Network#addMovableObject
.
Constraints are honored during the drag so that other
objects may also move as a result of this call.
The rotation is applied first, then the translation.
Positioning.Network#beginDrag
and
Positioning.Network#endDrag
.
translation
- The translation to be appliedrotation
- The rotation to be appliedNXException
RemoteException
void dragByTranslation(Vector3d translation) throws NXException, RemoteException
Positioning.Network#addMovableObject
.
Constraints are honored during the drag so that other
objects may also move as a result of this call.
Unlike Positioning.Network#dragByTransform
there is no rotational element passed in. This can improve the
behavior of the constraint solver.
Positioning.Network#beginDrag
and
Positioning.Network#endDrag
.
translation
- The translation to be appliedNXException
RemoteException
void endDrag() throws NXException, RemoteException
Positioning.Network#dragByRay
,
Positioning.Network#dragByTransform
or
Positioning.Network#dragByTranslation
.
NXException
RemoteException
void setMovingGroup(NXObject[] movableObjects) throws NXException, RemoteException
Positioning.Network#nonMovingGroupGrounded
and Positioning.Network#setNonMovingGroupGrounded
movableObjects
- The NXObject
s to be movedNXException
RemoteException
void emptyMovingGroup() throws NXException, RemoteException
Positioning.Network#setMovingGroup
.
NXException
RemoteException
void setNonMovingGroupGrounded(boolean ground) throws NXException, RemoteException
ground
- NXException
RemoteException
boolean nonMovingGroupGrounded() throws NXException, RemoteException
NXException
RemoteException
boolean isReferencedGeometryLoaded() throws NXException, RemoteException
NXException
RemoteException
void loadReferencedGeometry() throws NXException, RemoteException
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.