GeometricConstraintData Class — NXOpen Python API Reference 12.0.0 documentation

# GeometricConstraintData Class

class `NXOpen.Features.``GeometricConstraintData`

  Bases: `NXOpen.TaggedObject`

  Represents 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.GeometricConstraintDataAutoConstraintType` and `NXOpen.Features.GeometricConstraintDataParameterDirection` are necessary.

  Fixed type - To specify **NXOpen.Features.GeometricConstraintData</b> as a fixed type, the actual objects representing different types of constraints such as `NXOpen.Direction` for tangent, `NXOpen.Scalar` for tangent magnitude or `NXOpen.Offset` for 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 `AutomaticConstraintDirection`

  Returns: |
  Return type: | `NXOpen.Features.GeometricConstraintDataParameterDirection`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AutomaticConstraintDirection`

  Parameters: | 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 `AutomaticConstraintType`

  Returns: |
  Return type: | `NXOpen.Features.GeometricConstraintDataAutoConstraintType`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `AutomaticConstraintType`

  Parameters: | 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 `CanInferConstraintFromAttachmentParent`

  Returns: |
  Return type: | bool

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `CanInferConstraintFromAttachmentParent`

  Parameters: | 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 `Curvature`

  Returns: |
  Return type: | `NXOpen.Offset`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Curvature`

  Parameters: | 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 `CurvatureDerivative`

  Returns: |
  Return type: | `NXOpen.Offset`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `CurvatureDerivative`

  Parameters: | 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 `HasSymmetricModelingConstraint`

  Returns: |
  Return type: | bool

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `HasSymmetricModelingConstraint`

  Parameters: | 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 `Point`

  Returns: |
  Return type: | `NXOpen.Point`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Point`

  Parameters: | 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 `TangentDirection`

  Returns: |
  Return type: | `NXOpen.Direction`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TangentDirection`

  Parameters: | 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 `TangentMagnitude`

  Returns: |
  Return type: | `NXOpen.Scalar`

  New in version NX5.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `TangentMagnitude`

  Parameters: | tangentMagnitude (`NXOpen.Scalar`) –

  New in version NX5.0.0.

  License requirements: None.