COM object EvExporter
EvApplication > EvFileCollection > EvFile > EvExportersCollection > EvExporter
View the COM map and the COM summary. |
The EvExporter object enables you to get information about the exporter and use the exporter. Note, use the EvApplication.Exec method and the command interface exporter properties to script changes for Exporter Properties.
The EvFile.Exporters[] property lists all the exporters in an EV file and is an EvExportersCollection.
EvExporter methods and properties include:
|
Description |
Export(string FileNameAndPath) SummaryExport the CSV output from the exporter to a specified file path. Parameters
ReturnWhether successful. ExampleThe EV file has two preconfigured exporters.
See also: EvVariableAcoustic.AddExporter example. |
|
ExportSettings(string FileNameAndPath) SummaryExportSettings outputs a file that contains the exporter's properties as lists of tab-separated values. This is equivalent to the right-click menu item Export, Settings on the Dataflow window. The header row is: ObjectName PropertyName CurrentValue Units MinimumValue MaximumValue ValueOptions DefaultValue Parameters
ReturnWhether successful. ExampleSee Exporter example. |
|
(read-only) ExportType SummaryReturns the EExportType enum for the export type of the exporter. ParametersNone ReturnWhether successful. ExampleSee Exporter example. |
|
EvVariableBase GetOperand(Integer Index) SummaryGet the variable used as Operand n in the exporter of interest. The method returns the variable object. See also the Console action Operands (note, the Console operand list index is handled differently). Parameters
ReturnEvVariableBase object. ExampleSee SetOperand example. |
|
string Name SummaryAccess the name of the exporter. Note, the use of Dynamic exporter property and a Dynamic name will lock Name property. ParametersNone ReturnThe return is the name of the exporter. ExampleSee Exporter example. |
|
string Notes SummaryGet or add text from the Notes section of the exporter, as a string of characters. ParametersNone ReturnThe return is a string containing the exporter Notes text. ExampleSee Exporter example. |
|
boolean SetOperand (integer Index, EvVariableBase Variable) SummaryAssign the specified variable (an EvVariableBase object) as Operand n. See also the Console action Operands (note, the Console operand list index is handled differently). Parameters
ReturnWhether successful. Example'-------------------------------------------------
'START SCRIPT exporter example
'-------------------------------------------------
Dim vEvApp: Set vEvApp = CreateObject("EchoviewCom.EvApplication")
'Specify an EV file.
Dim vEvFile: Set vEvFile = vEvApp.OpenFile("C:\Data and EV files\AutoOpen\YourEvFile.EV")
'Specify an two acoustic variables
Dim vSvVar: Set vSvVar = vEvFile.Variables.FindByName("Fileset1: Sv pings")
Dim vProcessedSvVar: Set vProcessedSvVar = vEvFile.Variables.FindByName("ProcessedDataSv")
'Create new multiple operand Measurements - EVD exporter, with Operand 1 as "Fileset 1: Sv raw pings T1"
'Exporter with multiple operands Measurements - EVD is supported by eExportTypeEvd = 10
Dim vNewExporter: Set vNewExporter = vSvVar.AddExporter(10)
'Add a second operand vProcessedSvVar as Operand 2
vNewExporter.SetOperand 2, vProcessedSvVar
Dim vOp1: Set vOp1= vNewExporter.GetOperand(1)
Dim vOp2: Set vOp2 = vNewExporter.GetOperand(2)
'Display the exporter name and the operands
MsgBox " Name of exporter" + vNewExporter.Name
MsgBox " First operand " + vOp1.Name
MsgBox " Second operand " + vOp2.Name
vEvFile.SaveAs("C:\Data and EV files\AExport\ExporterExample.EV")
vEvApp.CloseFile(vEvFile)
vEvApp.Quit |
See also
Scripting with COM objects
EvExportersCollection
COM object hierarchy