COM object EvVariableBase
|
EvApplication > EvFileCollection > EvFile > EvVariablesCollection > EvVariableBase
View the COM map and the COM summary. |
The EvVariableBase object gives access to information on and actions with a variable in an EV file. This includes acoustic, virtual and other Echoview variables.
You can use the EvVariableBase object to determine if the variable is an acoustic variable or a virtual variable. With this knowledge you can proceed to use the methods and properties of the EvVariableAcoustic object or the EvVariableVirtual object.
The EvFile.Variables[] property lists all of the variables in an EV file and is an EvVariablesCollection.
EvVariable base methods and properties:
AddExporter
AddVariable
AsVariableBase
AsVariableAcoustic
AsVariableVirtual
CloseAssociatedViews
ExportData
ExportEVD
ExportEVDRange
ExportSettings
ExportTrackToImage
Name
MeasurementCount
OpenView
Useable
VariableType
|
|
Description |
ExportData(string FileName, int FirstPing, int LastPing, double MaxFileSizeMB) SummaryExport the data for the current variable. ExportData includes support for acoustic, position, attitude and movement variables. Parameters
ReturnTrue, if successful.
|
|
|
(read-only) int MeasurementCount SummaryDetermine the number of pings/measurements in the specified variable. Echoview COM supports variable types as:
Example
Snippet for tsvar, where FindByName is used with an acoustic variable string, then assigning tsVirtual to handle as an acoustic variable. Set tsVirtual = tsVar.AsVariableAcoustic Snippet for tsVar, where FindByName is used with a virtual variable string, then assigning tsVirtual to handle as a virtual variable. Set tsVirtual = tsVar.AsVariableVirtual |
See also
Scripting with COM objects
COM object hierarchy
EvVariableAcoustic
EvVariableVirtual
EvVariablesCollection