public interface ComponentConstraint extends Constraint
Modifier and Type | Interface and Description |
---|---|
static class |
ComponentConstraint.DirectionToFixed
Specifies how a constraint affects the positioning of a component.
|
Constraint.Alignment, Constraint.SolverStatus, Constraint.SplineType, Constraint.Type
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat, NXObject.NextUserAttributeData
Modifier and Type | Method and Description |
---|---|
boolean |
arrangementSpecific()
Returns
the arrangement specific state of this
ComponentConstraint in the
ComponentPositioner.primaryArrangement() and ComponentPositioner.setPrimaryArrangement(nxopen.assemblies.Arrangement) . |
void |
copyToOverride()
Given an inherited
ComponentConstraint created because of Positioning Overrides, create a new constraint copied
from it in the same part. |
ComponentConstraint.DirectionToFixed |
getDirectionToFixed(Component component,
Arrangement arrangement)
Get the
ComponentConstraint.DirectionToFixed value of the ComponentConstraint
given a component and an arrangement. |
boolean |
getInherited()
Get whether this
ComponentConstraint is
an inherited constraint. |
boolean |
getSeparateSuppression()
An inherited
ComponentConstraint can be suppressed independently of the constraint it is
derived from. |
boolean |
getSharedSuppressed()
Get the shared suppression state of this
ComponentConstraint used across all
arrangements where the constraint is not arrangement specific. |
boolean |
getSpecificInArrangement(Arrangement arrangement)
Get the arrangement specific state of this
ComponentConstraint in the
specified Arrangement . |
boolean |
getSuppressedInArrangement(Arrangement arrangement)
Get the suppression state of this
ComponentConstraint in the
specified Arrangement . |
void |
rememberOnComponent(Component component)
Remembers the constraint in the prototype part of a referenced component
for reuse in other occurrences of the part.
|
void |
setArrangementSpecific(boolean arrangementSpecific)
License requirements: assemblies ("ASSEMBLIES MODULE") . |
void |
setSeparateSuppression(boolean separateSuppression)
An inherited
ComponentConstraint can be suppressed independently of the constraint it is
derived from. |
void |
setSharedSuppressed(boolean suppressed)
Set the shared suppression state of this
ComponentConstraint used across all
arrangements where the constraint is not arrangement specific. |
void |
setSpecificInArrangement(Arrangement arrangement,
boolean arrangementSpecific)
Set the arrangement specific state of this
ComponentConstraint in the
specified Arrangement . |
void |
setSuppressedInArrangement(Arrangement arrangement,
boolean suppressed)
Set the suppression state of this
ComponentConstraint in the
specified Arrangement . |
automatic, constraintAlignment, constraintType, createConstraintReference, createConstraintReference, deleteConstraintReference, editConstraintReference, expression, expressionDriven, flipAlignment, generateConversionReport, getConstraintStatus, getDisplayedConstraint, getReferences, lowerLimitEnabled, lowerLimitExpression, lowerLimitRightHandSide, offsetExpression, offsetRightHandSide, persistent, renew, reverseDirection, secondExpression, secondExpressionDriven, secondExpressionRightHandSide, secondLowerLimitEnabled, secondLowerLimitExpression, secondLowerLimitRightHandSide, secondUpperLimitEnabled, secondUpperLimitExpression, secondUpperLimitRightHandSide, setAlignmentHint, setAutomatic, setConstraintAlignment, setConstraintType, setExpression, setExpressionDriven, setLowerLimitEnabled, setLowerLimitRightHandSide, setOffsetRightHandSide, setPersistent, setSecondExpressionDriven, setSecondExpressionRightHandSide, setSecondLowerLimitEnabled, setSecondLowerLimitRightHandSide, setSecondUpperLimitEnabled, setSecondUpperLimitRightHandSide, setSplinePointsType, setSuppressed, setUpperLimitEnabled, setUpperLimitRightHandSide, splinePointsType, suppressed, upperLimitEnabled, upperLimitExpression, upperLimitRightHandSide
createAttributeIterator, deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getNextUserAttribute, getPdmReferenceAttributeValue, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setPdmReferenceAttribute, 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 rememberOnComponent(Component component) throws NXException, RemoteException
component
- The Component
on which the constraint is rememberedNXException
RemoteException
boolean arrangementSpecific() throws NXException, RemoteException
ComponentConstraint
in the
ComponentPositioner.primaryArrangement()
and ComponentPositioner.setPrimaryArrangement(nxopen.assemblies.Arrangement)
. Constraints can
never be arrangement specific in piece parts.
NXException
RemoteException
void setArrangementSpecific(boolean arrangementSpecific) throws NXException, RemoteException
arrangementSpecific
- The arrangement specific stateNXException
RemoteException
boolean getSpecificInArrangement(Arrangement arrangement) throws NXException, RemoteException
ComponentConstraint
in the
specified Arrangement
.
arrangement
- The Arrangement
in which the arrangement specific state is being enquired.NXException
RemoteException
void setSpecificInArrangement(Arrangement arrangement, boolean arrangementSpecific) throws NXException, RemoteException
ComponentConstraint
in the
specified Arrangement
.
arrangement
- The Arrangement
in which the arrangement specific state is being set.arrangementSpecific
- The arrangement specific state.NXException
RemoteException
boolean getSuppressedInArrangement(Arrangement arrangement) throws NXException, RemoteException
ComponentConstraint
in the
specified Arrangement
. If the constraint is not arrangement
specific in this arrangement then the shared suppression state, used across all
arrangements where the constraint is not arrangement specific, is used.
arrangement
- The Arrangement
in which the suppression state is being enquired.NXException
RemoteException
void setSuppressedInArrangement(Arrangement arrangement, boolean suppressed) throws NXException, RemoteException
ComponentConstraint
in the
specified Arrangement
. If the constraint is not arrangement
specific in this arrangement then the shared suppression state, used across all
arrangements where the constraint is not arrangement specific, is set.
arrangement
- The Arrangement
in which the suppression state is being set.suppressed
- The suppression state.NXException
RemoteException
boolean getSharedSuppressed() throws NXException, RemoteException
ComponentConstraint
used across all
arrangements where the constraint is not arrangement specific.
NXException
RemoteException
void setSharedSuppressed(boolean suppressed) throws NXException, RemoteException
ComponentConstraint
used across all
arrangements where the constraint is not arrangement specific.
suppressed
- The suppression state.NXException
RemoteException
boolean getInherited() throws NXException, RemoteException
ComponentConstraint
is
an inherited constraint. An inherited constraint is created by the system
to support Positioning Overrides.
ComponentConstraint
NXException
RemoteException
ComponentConstraint.DirectionToFixed getDirectionToFixed(Component component, Arrangement arrangement) throws NXException, RemoteException
ComponentConstraint.DirectionToFixed
value of the ComponentConstraint
given a component and an arrangement.
This value specifies how a constraint affects the positioning of a component.
If the arrangement is null, the "direction to fixed" value will be evaluated based on the default arrangement.
component
- The component constrained to the specified constraint.arrangement
- The Arrangement
in which the constraint state is being evaluated.ComponentConstraint.DirectionToFixed
value.NXException
RemoteException
void copyToOverride() throws NXException, RemoteException
ComponentConstraint
created because of Positioning Overrides, create a new constraint copied
from it in the same part. Unlike the inherited ComponentConstraint
, the new constraint can be modified by the
user in the same ways as a normal constraint. (Inherited constraints can be suppressed or unsuppressed, but are otherwise read-only.)
If the constraint is not an inherited constraint, an error is raised.
NXException
RemoteException
boolean getSeparateSuppression() throws NXException, RemoteException
ComponentConstraint
can be suppressed independently of the constraint it is
derived from. When this has been done, it no longer becomes suppressed or unsuppressed in response to changes in the suppression
of the constraint it is derived from. This method returns true for an inherited constraint in this state. It does not indicate
if the constraint is inherited or not: use Constraint.suppressed()
for this.
Given a non-inherited constraint, this will return false.
ComponentConstraint
NXException
RemoteException
void setSeparateSuppression(boolean separateSuppression) throws NXException, RemoteException
ComponentConstraint
can be suppressed independently of the constraint it is
derived from. When this has been done, it no longer becomes suppressed or unsuppressed in response to changes in the suppression
of the constraint it is derived from. This method sets this state on an inherited constraint. Setting this flag will not in
itself suppress or unsuppress the inherited constraint: use Constraint.suppressed()
for this.
If the constraint is not an inherited constraint, an error is raised.
separateSuppression
- NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.