ASCIIExport Object

Export result data as an ASCII file.

Supported result items

The ASCII data export functionality is available for the following result items:

Methods

Reset

Resets the export options to the default.

 

FileName ( filename filename )

Sets the name of the exported file.

 

Mode ( enum type )

Use a fixed step width or a fixed number of samples for your data export. This settings is only available for 2D/3D field results.

 

type can have one of  the following values:

"FixedNumber"

Fixed number of samples

"FixedWidth"

Fixed step width

 

Step ( int steps / double stepwidth )

Number of steps or step width in all directions. Use the .Mode method to select the step definition. This settings is only available for 2D/3D field results.

 

StepX ( int steps / double stepwidth )

StepY ( int steps / double stepwidth )

StepZ ( int steps / double stepwidth )

Number of steps or step width in x / y / z-direction. Use the .Mode method to select the step definition. This settings is only available for 2D/3D field results.

 

 

Execute

Performs the ASCIIExport.

Default Settings

FileName ("")

Mode ("FixedWidth")

Step (-1)

Example

' The following script exports a file containing the electric field  "e1" (if available)

' The file will show 9 columns:

'     3 for the positions (x, y, z) and

'     6 for the electric field vector (3 x Re/Im)

 

' Select the desired monitor in the tree.

SelectTreeItem ("2D/3D Results\E-Field\e1")

 

With ASCIIExport

    .Reset

    .FileName (".\example.txt")

    .Mode ("FixedNumber")

    .StepX (12)

    .StepY (12)

    .StepZ (8)

    .Execute

End With