Skip to contents

This function imports a region definitions file (.evr) using COM scripting

Usage

EVImportRegionDef(EVFile, evrFile)

Arguments

EVFile

An Echoview file COM object

evrFile

An Echoview region definitions file (.evr) path and name

Value

If successful, A list object with three elements. $regionCOMObjs a list comprising of the COM object of each imported region; $regionMeta metadata of the regions imported: the region ID, region name and region class, and $msg message for processing log

See also

Examples

if (FALSE) EVAppObj <- COMCreate('EchoviewCom.EvApplication')
EVFile <- EVOpenFile(EVAppObj,'~~/KAOS/KAOStemplate.EV')$EVFile
#> Error in eval(expr, envir, enclos): object 'EVAppObj' not found
EVImportRegionDef(EVFile = EVFile, evrFile = '~~/KAOS/off transect regions/20030114_1200000000.evr')
#> Warning: 2024-05-14 12:38:48.678177 : EVR file not found.
#> $regionCOMObjs
#> [1] NA
#> 
#> $regionMeta
#> [1] NA
#> 
#> $msg
#> [1] "2024-05-14 12:38:48.678177 : EVR file not found."
#>