pltIExportCtrl GetFormatExtension

Finds the extension for the user input format.

Syntax

pltIMacro_handle GetFormatExtensionformat

Application

HyperWorks Tcl Query

Description

This command finds the extension for the user input format. You may find this useful when using SetFilename. You will then be able to add the correct extension to the filename, based upon the format being used. An example of an extension would be .csv for the Excel format.

Inputs

format
The format type that you want to get the extension of. The different types include: Excel, Column, XY Data, X GRAPH, Summary, Adams Spline, Altair Binary, CSV Blocks, DAC, RPC, and Excel Europe. These types can also be found by calling the GetFormatList function.

Example

hwi GetSessionHandle sess;
sess GetClientManagerHandle pm Plot;
pm GetMacroHandle mh 1
mh GetExportCtrlHandle ex
ex GetFormatExtension “XY Data”

Errors

Success (the list of types) or an error message is returned.

Keywords

HyperWorks

Tcl

Export

Query