COM object EvFile
EvApplication > EvFileCollection > EvFile View the COM map and the COM summary. |
The EvFile object accesses information about and performs actions on an EV file.
The EvApplication.EvFiles[] property lists all the EV files that are open in Echoview and is an EvFileCollection.
EvFile collections:
Exporters
Filesets
Lines
Objects3D
Platforms
Regions
RegionClasses
Scenes
Transducers
TransectGroups
Variables
EvFile classes:
EvFile methods and properties:
Close
ExportEVDAll
ExportToIcesNetcdfAll
FileName
Import
IsLiveViewing
PreReadDataFiles
Save
SaveAs
Description |
|
boolean Close() SummaryClose the EvFile. ParametersNone. ReturnThe status of the operation; true for success, false for failure. See also: EvApp.CloseFile. |
|
(read-only) Exporters[] SummaryEnables access to the collection of exporters in the EV file. ParametersNone. ReturnAn EvExporterstCollection action for an EvExporter object. ExampleSee the Exporter example. |
|
boolean ExportEVDAll(string FileName, [EEvdExportCompression CompressionLevel], [double MaxFileSizeMB] ) SummaryExports all variable data to an Echoview Data File Format file, including raw/virtual variables and lines. Note: Unavailable variables are not exported. Variables with no measurements, such as 'Ping subset 1' will not be included in the export, but will generate a message. Parameters
ReturnTrue, if successful. False, if unsuccessful (this can occur when you use the Cancel export button in Echoview during an export). Example,Dim vEchoviewCom: Set vEchoviewCom = GetObject(, "EchoviewCom.EvApplication") Dim vEvFile: Set vEvFile = vEchoviewCom.OpenFile("YourEvFile") vEvFile.ExportEVDAll "D:\Exports\EvdExportAll.evd" See also: Enum issue under VBS. |
|
ExportToIcesNetcdfAll | boolean ExportToIcesNetcdfAll( string FileName) SummaryExportToIcesNetcdfAll exports all Furuno FSV-30 (Research version) *.fsv raw Sv variable data in an EV file to a single *.nc file. Parameters
ReturnTrue when the export is successful. False when the export fails. ExampleDim vEvFile: Set vEvFile = vEchoviewCom.OpenFile("YourEVFileAndPath.EV") vEvFile.ExportToIcesNetcdfAll "YourOutputPath\FileName.nc" |
(read-only) string FileName SummaryGets the name of the EV file. ParametersNone. ReturnThe file name as a string. |
|
(read-only) Filesets[] SummaryEnables access to the collection of filesets in the file. ParametersNone. ReturnAn EvFilesetCollection action for EvFileset. ExampleEvApplication.EvFiles.Item(0).Filesets.Item(0)'The EvFileset for the first EV fileset for the first EV file. |
|
boolean Import(string sFileName) SummaryImport the specified file as per Importing 2D regions, while keeping existing regions. If the file cannot be imported, a message is sent to the scripting log file. See Importing in Echoview for information on the supported file formats for lines, regions, 3D objects etc. Parameters
ReturnTrue when the import is successful. False when the import fails. ExampleDim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication") Dim EvFile: Set EvFile = EvApp.OpenFile("c:\Test files\svgain.EV") If EvFile Is Nothing Then MsgBox "Failed to open EV file" Else EvFile.Import("c:\Test files\Copy of Line1.evl") End If |
|
boolean IsLiveViewing(string sEVFileName) SummaryChecks whether the specified EV file is being used for live viewing. Parameters
ReturnTrue if the EV file is being used for live viewing, false otherwise. ExampleDim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication") For FileIndex = 0 To EvApp.EvFiles.Count-1 Dim EvFile: Set EvFile = EvApp.EvFiles(FileIndex) If EvFile.IsLiveViewing Then MsgBox "File " + EvFile.FileName + " is live viewing." Else MsgBox "File " + EvFile.FileName + " is not live viewing." End If Next |
|
(read-only) Lines[] SummaryCollection of lines in the file. |
|
(read-only) Objects3D[] SummaryCollection of 3D objects in the file. |
|
(read-only) Platforms[] SummaryCollection of Platform objects in the file. |
|
PreReadDataFiles SummaryPre-reads an EV file. This is equivalent to using the Echogram keyboard shortcut P. ParametersThe EV file can be specified by an EvApplication method or similar. ExampleDim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication") Dim EvFile: Set EvFile = EvApp.OpenFile("C:\Test files\prereadtest.ev") If EvFile Is Nothing Then MsgBox "Failed to open EV file" Else EvFile.PreReadDataFiles End if |
|
(read-only) Properties SummaryThe EV file properties in the file, accessed through the EvFileProperties object. Supported EV file properties include selected settings on the:
|
|
(read-only) Regions[] SummaryCollection of regions in the file. Note: When two regions have the same name, the first one found is used. |
|
(read-only) RegionClasses[] SummaryCollection of regions classes in the file. |
|
(read-only) Scenes[] SummaryCollection of scenes in the file. |
|
boolean Save() SummarySave any changes made to the EvFile. ParametersNone. ReturnThe status of the operation; true for success, false for failure. The save is attempted regardless of whether or not the EV file is changed. This will always fail if the EV file has just been created. |
|
boolean SaveAs(string sFileName) SummarySave the EvFile to a new location. Parameters
ReturnThe status of the operation; true for success, false for failure. |
|
(read-only) Transducers[] SummaryCollection of Transducers in the file. See also EvTransducer snippet. |
|
TransectGroups | (read-only) TransectGroups[] SummaryCollection of TransectGroups in the file. See also EvTransectGroup snippet. |
(read-only) Variables[] SummaryCollection of variables in the file. |
See also
Scripting with COM objects
EvFileCollection
COM object hierarchy