COM object EvPlatform
EvApplication > EvFileCollection > EvFile > EvPlatformsCollection > EvPlatform
View the COM map and the COM summary. |
The EVPlatform object gives you the ability access to information about a platform in an EV file.
The EvFile.Platforms[] property lists all the platforms in an EV file and is an EvPlatformsCollection.
EvPlatform classes:
EvPlatform methods and properties:
|
Description |
EvLine HeaveSource SummaryGet or specify Heave source on the Position page of the Platform Properties dialog box. ParametersThe heave source is an EvLine. ReturnWhether successful. ExampleSee also: Enum issue under VBS. Dim vEvCom: Set vEvCom = GetObject(, "EchoviewCom.EvApplication") Dim vEvFile: Set vEvFile = vEvCom.OpenFile("C:\Your.EV") Dim vPlatform: Set vPlatform = vEvFile.Platforms.Item(0) MsgBox "'" + vPlatform.Name + "' position source '" + vPlatform.PositionSource.Name + "'" vPlatform.PositionSource = vEvFile.Variables.FindByName("Fileset1: position GPS fixes GPGGA") vPlatform.Name = "Boat" MsgBox "'" + vPlatform.Name + "' position source '" + vPlatform.PositionSource.Name + "'" ' 0 for ePlatformPositionDeterminedByGPS, 1 for ePlatformPositionFixed vPlatform.PlatformType = 1 MsgBox "'" + vPlatform.Name + "' type '" + CStr(vPlatform.PlatformType) + "'" vPlatform.WaterLevel = -100 MsgBox "'" + vPlatform.Name + "' water level '" + CStr(vPlatform.WaterLevel) + "'" vPlatform.HeaveSource = vEvFile.Lines.FindByName("Fileset1: HeaveLine") If vPlatform.HeaveSource Is Nothing Then MsgBox "'" + vPlatform.Name + "' has no heave source" Else MsgBox "'" + vPlatform.Name + "' heave source '" + vPlatform.HeaveSource.Name + "'" End If |
|
string Name SummaryGet or specify the name of the platform on the General page of the Platform Properties dialog box. Parameters
ReturnWhether successful. ExampleRefer to Platform example. |
|
ePlatformPositionType PlatformType SummaryGet or specify Platform type on the Position page of the Platform Properties dialog box. ParametersThe platform type is specified using ePlatformPositionType. ReturnWhether successful. ExampleRefer to Platform example |
|
EvVariableBase PositionSource SummaryGet or specify the Position source on the Position page of the Platform Properties dialog box. ParametersThe Position source is specified using EvVariableBase. ReturnWhether successful. ExampleRefer to Platform example |
|
TransectSource | EvTransectGroup TransectSource SummaryGet or specify Transect group source on the Position page of the Platform Properties dialog box. ParametersThe Transect group source is an EvTransectGroup object and an item of the EvTransectGroups collection. ReturnWhether successful. Example |
double WaterLevel SummaryGet or specify the value for the Z coordinate of the water level on the Position page of the Platform Properties dialog box. ParametersThe water level is a real number in meters. ReturnWhether successful. ExampleRefer to Platform example. |
See also
Scripting with COM objects
COM object hierarchy
EvPlatformsCollection