ImportData Class — NXOpen Python API Reference 12.0.0 documentation

# ImportData Class

class `NXOpen.Fields.``ImportData`

  Bases: `NXOpen.TransientObject`

  Represents data transfer objectst for field import

  To create a new instance of this class, use `NXOpen.Fields.FieldManager.CreateImportData()`

  New in version NX6.0.0.

# Methods

Method | Description
--- | ---
Dispose | Destroys the object
GetFields | Return the fields that have been imported
GetFileName | Get file name
GetMessages | Return any diagnostic messages
SetFileName | Set file name

# Method Detail

## Dispose

`ImportData.``Dispose`

  Destroys the object

  Signature `Dispose()`

  New in version NX6.0.0.

  License requirements: None.

## GetFields

`ImportData.``GetFields`

  Return the fields that have been imported

  Signature `GetFields()`

  Returns: | the fields that have been imported
  Return type: | list of `NXOpen.Fields.Field`

  New in version NX6.0.1.

  License requirements: None.

## GetFileName

`ImportData.``GetFileName`

  Get file name

  Signature `GetFileName()`

  Returns: | file name
  Return type: | str

  New in version NX6.0.0.

  License requirements: None.

## GetMessages

`ImportData.``GetMessages`

  Return any diagnostic messages

  Signature `GetMessages()`

  Returns: | the diagnostic messages if any
  Return type: | list of str

  New in version NX11.0.1.

  License requirements: None.

## SetFileName

`ImportData.``SetFileName`

  Set file name

  Signature `SetFileName(fileName)`

  Parameters: | fileName (str) – file name

  New in version NX6.0.0.

  License requirements: None.