DataManager Class — NXOpen Python API Reference 12.0.0 documentation

# DataManager Class

class `NXOpen.CAE.FTK.``DataManager`

  Bases: `object`

  Ftk data manager

  To obtain an instance of this class use `NXOpen.Session.DataManager()`.

  New in version NX7.5.0.

# Methods

Method | Description
--- | ---
CreateArrayRecord2d | Creates 2d array record
CreateArrayRecord2dEvenSpacing | Creates 2d array record with even spacing
CreateArrayRecord3d | Creates 3d array record
CreateArrayRecordUnit | Creates an array record unit by xy function unit
CreateArrayUnit | Creates array unit by nx system unit
CreateComplexMatrixRecord | Creates an empty complex matrix record which section data is complex data.
CreateRealMatrixRecord | Creates an empty real matrix record which section data is real data.
CreateUnitlessUnit | Creates unitless unit
DeleteArrayUnit | Deletes array unit
DeleteFile | Deletes afu/op2 file
DeleteRecord | Deletes record
GetAfuRecord | Gets afu record
GetOp2Record | Gets op2 record
LoadFile | Loads afu/op2 file to User container
UnloadFile | Unloads afu/op2 file from User container

# Enumerations

DataManagerAfuRecordZValue Enumeration | Represents the method to get Z value for afu record in 3D plot
DataManagerFileContainerType Enumeration | Represents the file container type

# Method Detail

## CreateArrayRecord2d

`DataManager.``CreateArrayRecord2d`

  Creates 2d array record

  Signature `CreateArrayRecord2d(titleName, legendName, numPoints)`

  Parameters:

  - titleName (str) – Title name
  - legendName (str) – Legend name
  - numPoints (int) – Point count

  Returns: | 2D array record
  Return type: | `NXOpen.CAE.FTK.ArrayRecord2D`

  New in version NX7.5.0.

  License requirements: None.

## CreateArrayRecord2dEvenSpacing

`DataManager.``CreateArrayRecord2dEvenSpacing`

  Creates 2d array record with even spacing

  Signature `CreateArrayRecord2dEvenSpacing(titleName, legendName)`

  Parameters:

  - titleName (str) – Title name
  - legendName (str) – Legend name

  Returns: | 2D even array record
  Return type: | `NXOpen.CAE.FTK.ArrayRecord2DEven`

  New in version NX9.0.0.

  License requirements: None.

## CreateArrayRecord3d

`DataManager.``CreateArrayRecord3d`

  Creates 3d array record

  Signature `CreateArrayRecord3d(titleName, legendName, numPoints)`

  Parameters:

  - titleName (str) – Title name
  - legendName (str) – Legend name
  - numPoints (int) – Point count

  Returns: | 3D array record
  Return type: | `NXOpen.CAE.FTK.ArrayRecord3D`

  New in version NX7.5.0.

  License requirements: None.

## CreateArrayRecordUnit

`DataManager.``CreateArrayRecordUnit`

  Creates an array record unit by xy function unit

  Signature `CreateArrayRecordUnit(unitType)`

  Parameters: | unitType (`NXOpen.CAE.XyFunctionUnit`) – Unit type
  Returns: | Array unit
  Return type: | `NXOpen.CAE.FTK.BaseUnit`

  New in version NX11.0.0.

  Deprecated since version NX12.0.0: Use `NXOpen.CAE.FTK.DataManager.CreateArrayUnit()` instead.

  License requirements: None.

## CreateArrayUnit

`DataManager.``CreateArrayUnit`

  Creates array unit by NX unit with new alias measure type name.

  Please use the method `NXOpen.CAE.FTK.DataManager.CreateArrayUnit()` which has two parameters if the alias measure name is not needed

  Signature `CreateArrayUnit(nxUnit, aliasMeasureName)`

  Parameters:

  - nxUnit (`NXOpen.Unit`) – NX unit
  - aliasMeasureName (str) – alias measure name

  Returns: | Array unit
  Return type: | `NXOpen.CAE.FTK.BaseUnit`

  New in version NX12.0.0.

  License requirements: None.

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

  Creates array unit by numerator and denominator unit

  Signature `CreateArrayUnit(numeratorUnit, denominatorUnit)`

  Parameters:

  - numeratorUnit (`NXOpen.CAE.FTK.BaseUnit`) – Numerator unit
  - denominatorUnit (`NXOpen.CAE.FTK.BaseUnit`) – Denominator unit

  Returns: | Array unit
  Return type: | `NXOpen.CAE.FTK.BaseUnit`

  New in version NX7.5.0.

  License requirements: None.

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

## CreateComplexMatrixRecord

`DataManager.``CreateComplexMatrixRecord`

  Creates an empty complex matrix record which section data is complex data.

  Signature `CreateComplexMatrixRecord(titleName, legendName)`

  Parameters:

  - titleName (str) – Title name
  - legendName (str) – Legend name

  Returns: | Complex matrix record
  Return type: | `NXOpen.CAE.FTK.ComplexSectionBasedMatrixRecord`

  New in version NX10.0.0.

  License requirements: None.

## CreateRealMatrixRecord

`DataManager.``CreateRealMatrixRecord`

  Creates an empty real matrix record which section data is real data.

  Signature `CreateRealMatrixRecord(titleName, legendName)`

  Parameters:

  - titleName (str) – Title name
  - legendName (str) – Legend name

  Returns: | Real matrix record
  Return type: | `NXOpen.CAE.FTK.RealSectionBasedMatrixRecord`

  New in version NX10.0.0.

  License requirements: None.

## CreateUnitlessUnit

`DataManager.``CreateUnitlessUnit`

  Creates unitless unit

  Signature `CreateUnitlessUnit(unitName)`

  Parameters: | unitName (str) – Unit name
  Returns: | Array unit
  Return type: | `NXOpen.CAE.FTK.BaseUnit`

  New in version NX12.0.0.

  License requirements: None.

## DeleteArrayUnit

`DataManager.``DeleteArrayUnit`

  Deletes array unit

  Signature `DeleteArrayUnit(deletedUnit)`

  Parameters: | deletedUnit (`NXOpen.CAE.FTK.BaseUnit`) – Deleted unit

  New in version NX9.0.0.

  License requirements: None.

## DeleteFile

`DataManager.``DeleteFile`

  Deletes afu/op2 file

  Signature `DeleteFile(fileName)`

  Parameters: | fileName (str) – Afu/Op2 file name with full path

  New in version NX7.5.0.

  License requirements: None.

## DeleteRecord

`DataManager.``DeleteRecord`

  Deletes record

  Signature `DeleteRecord(deletedRecord)`

  Parameters: | deletedRecord (`NXOpen.CAE.FTK.BaseRecord`) – Deleted record

  New in version NX7.5.0.

  License requirements: None.

## GetAfuRecord

`DataManager.``GetAfuRecord`

  Gets afu record

  Signature `GetAfuRecord(afuFileName, recordName)`

  Parameters:

  - afuFileName (str) – Afu file name with full path
  - recordName (str) – Afu record name

  Returns: | Afu record data
  Return type: | `NXOpen.CAE.FTK.BaseRecord`

  New in version NX7.5.0.

  License requirements: None.

## GetOp2Record

`DataManager.``GetOp2Record`

  Gets op2 record

  Signature `GetOp2Record(op2FileName, dataSetName, recordName)`

  Parameters:

  - op2FileName (str) – Op2 file name with full path
  - dataSetName (str) – Op2 data set name
  - recordName (str) – Op2 record name

  Returns: | Op2 record data
  Return type: | `NXOpen.CAE.FTK.BaseRecord`

  New in version NX7.5.0.

  License requirements: None.

## LoadFile

`DataManager.``LoadFile`

  Overloaded method LoadFile

  - `LoadFile(fileName)`
  - `LoadFile(fileName, containerType)`

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

  Loads afu/op2 file to User container

  Signature `LoadFile(fileName)`

  Parameters: | fileName (str) – Afu/Op2 file name with full path

  New in version NX7.5.0.

  License requirements: None.

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

  Loads an AFU/OP2 file to the specified container.

  An AFU/OP2 file can be loaded under associated container, solution result container or user container. The container type indicates under which container the file is loaded.

  Signature `LoadFile(fileName, containerType)`

  Parameters:

  - fileName (str) – AFU/OP2 file name with full path
  - containerType (`NXOpen.CAE.FTK.DataManagerFileContainerType`) –

  New in version NX12.0.0.

  License requirements: None.

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

## UnloadFile

`DataManager.``UnloadFile`

  Overloaded method UnloadFile

  - `UnloadFile(fileName)`
  - `UnloadFile(fileName, containerType)`

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

  Unloads afu/op2 file from User container

  Signature `UnloadFile(fileName)`

  Parameters: | fileName (str) – Afu/Op2 file name with full path

  New in version NX7.5.0.

  License requirements: None.

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

  Unloads an AFU/OP2 file from the specified container.

  An AFU/OP2 file can be loaded under associated container, solution result container or user container. The container type indicates under which container the file is unloaded.

  Signature `UnloadFile(fileName, containerType)`

  Parameters:

  - fileName (str) – AFU/OP2 file name with full path
  - containerType (`NXOpen.CAE.FTK.DataManagerFileContainerType`) –

  New in version NX12.0.0.

  License requirements: None.

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