PLOT-3D .P3D, .XYZ Import Automation Options

 

When the program is driven from an automation script, an options string can be specified in the script that acts as the import options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various import options.

 

Parameter

Type

Description

Filter

string

P3D

DataFormat

0, 1, 2

0 = Data is in binary format

1 = Data is formatted.

2 = Data is unformatted.

GridFormat

0, 1, 2, 3

0 = The data is structured

1 = The data is unstructured

2 = The data is in scalar format.

3 = The data is in vector format.

Multizone

0, 1

0= Is not multizone.

1 = Is multizone.

Blanked

0, 1

0 = Do not use blanking.

1 = Do use blanking.

 

Example

This example shows how to import a P3D file with the various options.

 

CommandApi.Construct("Import")

  CommandApi.Option("GuiEnabled", "False")

  CommandApi.Option("ProgressEnabled", "False")

  CommandApi.Option("UndoRedoEnabled", "True")

  CommandApi.Option("AutoConnect", "False")

  CommandApi.Option("ClearOptions", "False")

  CommandApi.Option("Filter", "p3d")

  CommandApi.Option("Options", "DataFormat=0;GridFormat=1;Multizone=0;Blanked=0")

  CommandApi.Option("Path", "C:/Path/To/Import/file.p3d")

  CommandApi.Option("PersistOptions", "True")

CommandApi.Do()

 

Used by: Import

 

 

See Also

Automation Model