Plot 3D File Format .P3D, .XYZ Export Automation Options

 

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

 

Parameter

Type

Description

Blanked

0, 1

The Blanked option specifies whether blanking data is present in or absent from the exported file.

0 = Blanking Absent

1 = Blanking Present

DataFormat

0, 1, 2

The DataFormat option specifies how the data values are encoded in the Plot-3d files.

0 = Raw Binary

1 = Formatted ASCII

2 = FORTRAN Unformatted

Filter

string

P3D

GridFormat

0, 1

Specifies the type of grid.

ModuleID

integer

Numeric ID of the module to be exported.

 

0=entire viewer window

2=default

MultiZone

0, 1

Specifies whether the P3D is single or multiple zones.

0 = single zone

1 = multiple zones

 

Example

This example shows how to export an P3D file with the various options.

 

CommandApi.Construct("Export")

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

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

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

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

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

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

CommandApi.Option("ModuleId", "2")

CommandApi.Do()

 

Used by: Export

 

 

See Also

Automation Model