Class Constraint
Inheritance
System.Object
System.MarshalByRefObject
Constraint
Implements
System.Runtime.Remoting.Messaging.IMessageSink
Inherited Members
System.MarshalByRefObject.CreateObjRef(System.Type)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NXOpen.dll
Syntax
public class Constraint : NXObject, IMessageSink, INXObject
Constructors
Constraint()
Declaration
Properties
Automatic
Declaration
public bool Automatic { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ConstraintAlignment
Declaration
public Constraint.Alignment ConstraintAlignment { get; set; }
Property Value
ConstraintType
Declaration
public Constraint.Type ConstraintType { get; set; }
Property Value
Expression
Declaration
public Expression Expression { get; }
Property Value
ExpressionDriven
Declaration
public bool ExpressionDriven { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LowerLimitEnabled
Declaration
public bool LowerLimitEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
LowerLimitExpression
Declaration
public Expression LowerLimitExpression { get; }
Property Value
LowerLimitRightHandSide
Declaration
public string LowerLimitRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
OffsetExpression
Declaration
public Expression OffsetExpression { get; }
Property Value
OffsetRightHandSide
Declaration
public string OffsetRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
Persistent
Declaration
public bool Persistent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SecondExpression
Declaration
public Expression SecondExpression { get; }
Property Value
SecondExpressionDriven
Declaration
public bool SecondExpressionDriven { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SecondExpressionRightHandSide
Declaration
public string SecondExpressionRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
SecondLowerLimitEnabled
Declaration
public bool SecondLowerLimitEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SecondLowerLimitExpression
Declaration
public Expression SecondLowerLimitExpression { get; }
Property Value
SecondLowerLimitRightHandSide
Declaration
public string SecondLowerLimitRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
SecondUpperLimitEnabled
Declaration
public bool SecondUpperLimitEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
SecondUpperLimitExpression
Declaration
public Expression SecondUpperLimitExpression { get; }
Property Value
SecondUpperLimitRightHandSide
Declaration
public string SecondUpperLimitRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
SplinePointsType
Declaration
public Constraint.SplineType SplinePointsType { get; set; }
Property Value
Suppressed
Declaration
public bool Suppressed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UpperLimitEnabled
Declaration
public bool UpperLimitEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
UpperLimitExpression
Declaration
public Expression UpperLimitExpression { get; }
Property Value
UpperLimitRightHandSide
Declaration
public string UpperLimitRightHandSide { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
CreateConstraintReference(NXObject, NXObject, Boolean, Boolean)
Declaration
public ConstraintReference CreateConstraintReference(NXObject movableObject, NXObject geometry, bool usesAxis, bool isIndirect)
Parameters
Type |
Name |
Description |
NXObject |
movableObject |
|
NXObject |
geometry |
|
System.Boolean |
usesAxis |
|
System.Boolean |
isIndirect |
|
Returns
CreateConstraintReference(NXObject, NXObject, Boolean, Boolean, Boolean)
Declaration
public ConstraintReference CreateConstraintReference(NXObject movableObject, NXObject geometry, bool usesAxis, bool isIndirect, bool usePortRotate)
Parameters
Type |
Name |
Description |
NXObject |
movableObject |
|
NXObject |
geometry |
|
System.Boolean |
usesAxis |
|
System.Boolean |
isIndirect |
|
System.Boolean |
usePortRotate |
|
Returns
DeleteConstraintReference(ConstraintReference)
Declaration
public void DeleteConstraintReference(ConstraintReference constraintReference)
Parameters
EditConstraintReference(ConstraintReference, NXObject, NXObject, Boolean, Boolean, Boolean)
Declaration
public void EditConstraintReference(ConstraintReference constraintReference, NXObject movableObject, NXObject geometry, bool usesAxis, bool isIndirect, bool usePortRotate)
Parameters
Type |
Name |
Description |
ConstraintReference |
constraintReference |
|
NXObject |
movableObject |
|
NXObject |
geometry |
|
System.Boolean |
usesAxis |
|
System.Boolean |
isIndirect |
|
System.Boolean |
usePortRotate |
|
FlipAlignment()
Declaration
public void FlipAlignment()
GenerateConversionReport(out String[])
Declaration
public void GenerateConversionReport(out string[] lines)
Parameters
Type |
Name |
Description |
System.String[] |
lines |
|
GetConstraintStatus()
Declaration
public Constraint.SolverStatus GetConstraintStatus()
Returns
GetDisplayedConstraint()
Declaration
public DisplayedConstraint GetDisplayedConstraint()
Returns
GetReferences()
Declaration
public ConstraintReference[] GetReferences()
Returns
Renew()
Declaration
ReverseDirection()
Declaration
public void ReverseDirection()
SetAlignmentHint(Constraint.Alignment)
Declaration
public void SetAlignmentHint(Constraint.Alignment alignment)
Parameters
SetExpression(String)
Declaration
public void SetExpression(string expression)
Parameters
Type |
Name |
Description |
System.String |
expression |
|
Implements
System.Runtime.Remoting.Messaging.IMessageSink