GeometricConstraintData Class¶
-
class
NXOpen.Features.GeometricConstraintData¶ Bases:
NXOpen.TaggedObjectRepresents Geometric Constraint Data class.
This class acts as a container of various types of geometric constraints such as position(G0), tangent(G1), tangent magnitude, curvature(G2) and curvature derivative(G3). An array of objects of this class may be used to create a curve. Not all features support all types of constraints. For details of the supported types by a feature, refer to feature documentation. Position is a minimum required element of **NXOpen.Features.GeometricConstraintData</b>.
**NXOpen.Features.GeometricConstraintData</b> can be specified as automatic or fixed type.
Automatic type - When a point (G0) is attached to an object such as curve or a face, constraint types such as tangent, curvature or curvature derivative can be automatically inferred from the attached object. In this case the tangent direction is determined by some scheme decided by the feature. To specify automatic type
NXOpen.Features.GeometricConstraintDataAutoConstraintTypeandNXOpen.Features.GeometricConstraintDataParameterDirectionare necessary.Fixed type - To specify **NXOpen.Features.GeometricConstraintData</b> as a fixed type, the actual objects representing different types of constraints such as
NXOpen.Directionfor tangent,NXOpen.Scalarfor tangent magnitude orNXOpen.Offsetfor curvature or curvature derivative are specified.To create a new instance of this class, use
NXOpen.Features.GeometricConstraintDataManager.CreateGeometricConstraintData()New in version NX5.0.0.
Properties¶
| Property | Description |
|---|---|
| AutomaticConstraintDirection | Returns or sets the automatic constraint direction type. |
| AutomaticConstraintType | Returns or sets the automatic constraint type |
| CanInferConstraintFromAttachmentParent | Returns or sets the flag indicating if a constraint can be inferred from the parent of the attachment object of the point. |
| Curvature | Returns or sets the curvature. |
| CurvatureDerivative | Returns or sets the curvature derivative. |
| HasSymmetricModelingConstraint | Returns or sets the flag indicating if tangent direction is used for creating symmetric modeling constraint. |
| Point | Returns or sets the point. |
| Tag | Returns the Tag for this object. |
| TangentDirection | Returns or sets the tangent direction. |
| TangentMagnitude | Returns or sets the tangent magnitude. |
Methods¶
Enumerations¶
| GeometricConstraintDataAutoConstraintType Enumeration | Automatic constraint types |
| GeometricConstraintDataParameterDirection Enumeration | Parameter direction to be used for creation of the constraint at a point which is attached to an object, for example a curve or a face |
Property Detail¶
AutomaticConstraintDirection¶
-
GeometricConstraintData.AutomaticConstraintDirection¶ Returns or sets the automatic constraint direction type.
For a constraint on a face it is necessary to specify parameter direction.
-------------------------------------Getter Method
Signature
AutomaticConstraintDirectionReturns: Return type: NXOpen.Features.GeometricConstraintDataParameterDirectionNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutomaticConstraintDirectionParameters: autoConstraintDirection ( NXOpen.Features.GeometricConstraintDataParameterDirection) –New in version NX5.0.0.
License requirements: None.
AutomaticConstraintType¶
-
GeometricConstraintData.AutomaticConstraintType¶ Returns or sets the automatic constraint type
-------------------------------------Getter Method
Signature
AutomaticConstraintTypeReturns: Return type: NXOpen.Features.GeometricConstraintDataAutoConstraintTypeNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
AutomaticConstraintTypeParameters: autoConstraintType ( NXOpen.Features.GeometricConstraintDataAutoConstraintType) –New in version NX5.0.0.
License requirements: None.
CanInferConstraintFromAttachmentParent¶
-
GeometricConstraintData.CanInferConstraintFromAttachmentParent¶ Returns or sets the flag indicating if a constraint can be inferred from the parent of the attachment object of the point.
E.g. if point is attached to an edge or a curve on face, then infer constraint from the face of the edge or the curve.
-------------------------------------Getter Method
Signature
CanInferConstraintFromAttachmentParentReturns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CanInferConstraintFromAttachmentParentParameters: canInferConstraintFromAttachmentParent (bool) – New in version NX8.0.0.
License requirements: None.
Curvature¶
-
GeometricConstraintData.Curvature¶ Returns or sets the curvature.
Used only when automatic constraint type is none.
-------------------------------------Getter Method
Signature
CurvatureReturns: Return type: NXOpen.OffsetNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurvatureParameters: curvature ( NXOpen.Offset) –New in version NX5.0.0.
License requirements: None.
CurvatureDerivative¶
-
GeometricConstraintData.CurvatureDerivative¶ Returns or sets the curvature derivative.
Used only when automatic constraint type is none
-------------------------------------Getter Method
Signature
CurvatureDerivativeReturns: Return type: NXOpen.OffsetNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
CurvatureDerivativeParameters: curvatureDerivative ( NXOpen.Offset) –New in version NX5.0.0.
License requirements: None.
HasSymmetricModelingConstraint¶
-
GeometricConstraintData.HasSymmetricModelingConstraint¶ Returns or sets the flag indicating if tangent direction is used for creating symmetric modeling constraint.
If true, only tangent direction object is used for constraint evaluation.
-------------------------------------Getter Method
Signature
HasSymmetricModelingConstraintReturns: Return type: bool New in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HasSymmetricModelingConstraintParameters: symmetric (bool) – New in version NX5.0.0.
License requirements: None.
Point¶
-
GeometricConstraintData.Point¶ Returns or sets the point.
Point is the minimum required data to create a constraint.
-------------------------------------Getter Method
Signature
PointReturns: Return type: NXOpen.PointNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
PointParameters: point ( NXOpen.Point) –New in version NX5.0.0.
License requirements: None.
TangentDirection¶
-
GeometricConstraintData.TangentDirection¶ Returns or sets the tangent direction.
Used only when automatic constraint type is none.
-------------------------------------Getter Method
Signature
TangentDirectionReturns: Return type: NXOpen.DirectionNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TangentDirectionParameters: tangentDirection ( NXOpen.Direction) –New in version NX5.0.0.
License requirements: None.
TangentMagnitude¶
-
GeometricConstraintData.TangentMagnitude¶ Returns or sets the tangent magnitude.
Used only when automatic constraint type is none.
-------------------------------------Getter Method
Signature
TangentMagnitudeReturns: Return type: NXOpen.ScalarNew in version NX5.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
TangentMagnitudeParameters: tangentMagnitude ( NXOpen.Scalar) –New in version NX5.0.0.
License requirements: None.