GeometricConstraintDataManager Class — NXOpen Python API Reference 12.0.0 documentation

# GeometricConstraintDataManager Class

class `NXOpen.Features.``GeometricConstraintDataManager`

  Bases: `NXOpen.TaggedObject`

  Represents Geometric Constraint Data Manager class.

  This class maintains a list of `NXOpen.Features.GeometricConstraintData` objects and manages them.

  New in version NX5.0.0.

# Properties

Property | Description
--- | ---
Length | Returns the number of `NXOpen.Features.GeometricConstraintData` objects in the list
Tag | Returns the Tag for this object.

# Methods

Method | Description
--- | ---
Append | Appends `NXOpen.Features.GeometricConstraintData` object to the end of the list
Clear | Deletes all `NXOpen.Features.GeometricConstraintData` objects from the list
CreateGeometricConstraintData | Creates a new empty `NXOpen.Features.GeometricConstraintData` object
Delete | Deletes a given `NXOpen.Features.GeometricConstraintData` object from the list
FindItem | Returns `NXOpen.Features.GeometricConstraintData` object at the input index.
GetContents | Queries all the `NXOpen.Features.GeometricConstraintData` objects
GetIndex | Finds index of `NXOpen.Features.GeometricConstraintData` object in the list
Insert | Inserts `NXOpen.Features.GeometricConstraintData` object in the list before a given position
SetContents | Sets array of `NXOpen.Features.GeometricConstraintData` objects in the list.

# Property Detail

## Length

`GeometricConstraintDataManager.``Length`

  Returns the number of `NXOpen.Features.GeometricConstraintData` objects in the list

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

  Getter Method

  Signature `Length`

  Returns: |
  Return type: | int

  New in version NX5.0.0.

  License requirements: None.

# Method Detail

## Append

`GeometricConstraintDataManager.``Append`

  Appends `NXOpen.Features.GeometricConstraintData` object to the end of the list

  Signature `Append(constraint)`

  Parameters: | constraint (`NXOpen.Features.GeometricConstraintData`) –

  New in version NX5.0.0.

  License requirements: None.

## Clear

`GeometricConstraintDataManager.``Clear`

  Deletes all `NXOpen.Features.GeometricConstraintData` objects from the list

  Signature `Clear()`

  New in version NX5.0.0.

  License requirements: None.

## CreateGeometricConstraintData

`GeometricConstraintDataManager.``CreateGeometricConstraintData`

  Creates a new empty `NXOpen.Features.GeometricConstraintData` object

  Signature `CreateGeometricConstraintData()`

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

  New in version NX5.0.0.

  License requirements: None.

## Delete

`GeometricConstraintDataManager.``Delete`

  Overloaded method Delete

  - `Delete(constraint)`
  - `Delete(constraintIndex)`

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

  Deletes a given `NXOpen.Features.GeometricConstraintData` object from the list

  Signature `Delete(constraint)`

  Parameters: | constraint (`NXOpen.Features.GeometricConstraintData`) –

  New in version NX5.0.0.

  License requirements: None.

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

  Deletes `NXOpen.Features.GeometricConstraintData` object of a certain index from the list

  Signature `Delete(constraintIndex)`

  Parameters: | constraintIndex (int) –

  New in version NX5.0.0.

  License requirements: None.

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

## FindItem

`GeometricConstraintDataManager.``FindItem`

  Returns `NXOpen.Features.GeometricConstraintData` object at the input index.

  May be NULL if not found.

  Signature `FindItem(constraintIndex)`

  Parameters: | constraintIndex (int) – index of object to return
  Returns: | object found at input index
  Return type: | `NXOpen.Features.GeometricConstraintData`

  New in version NX5.0.0.

  License requirements: None.

## GetContents

`GeometricConstraintDataManager.``GetContents`

  Queries all the `NXOpen.Features.GeometricConstraintData` objects

  Signature `GetContents()`

  Returns: |
  Return type: | list of `NXOpen.Features.GeometricConstraintData`

  New in version NX5.0.0.

  License requirements: None.

## GetIndex

`GeometricConstraintDataManager.``GetIndex`

  Finds index of `NXOpen.Features.GeometricConstraintData` object in the list

  Signature `GetIndex(constraint)`

  Parameters: | constraint (`NXOpen.Features.GeometricConstraintData`) –
  Returns: | Equals -1 if not found
  Return type: | int

  New in version NX5.0.0.

  License requirements: None.

## Insert

`GeometricConstraintDataManager.``Insert`

  Inserts `NXOpen.Features.GeometricConstraintData` object in the list before a given position

  Signature `Insert(insertBeforeIndex, constraint)`

  Parameters:

  - insertBeforeIndex (int) –
  - constraint (`NXOpen.Features.GeometricConstraintData`) –

  New in version NX5.0.0.

  License requirements: None.

## SetContents

`GeometricConstraintDataManager.``SetContents`

  Sets array of `NXOpen.Features.GeometricConstraintData` objects in the list.

  Signature `SetContents(constraints)`

  Parameters: | constraints (list of `NXOpen.Features.GeometricConstraintData`) –

  New in version NX5.0.0.

  License requirements: None.