COM object EvLine
|
EvApplication > EvFileCollection > EvFile > EvLinesCollection > EvLine View the COM map and the COM summary. |
The EvLine object gives you the ability to access lines, change line names and export lines from an EV file.
The EvFile.Lines[] property lists all the lines in an EV file and is an EvLinesCollection.
Note:
- EvLineEditable gives you the ability to access or change editable line names and export editable lines from an EV file.
- EvFileProperties.LinePick allows access to settings on the Line Pick page of the EV File Properties dialog box.
- EvLinePickProperties allows you to change the line pick settings.
- EvGrid.SetDepthRangeGrid sets the depth/range/reference-line mode for the depth/range grid.
- EvGrid.DepthRangeReferenceLine is the line to use as a reference-line for the depth/range grid.
- Also refer to CreateLine.
EvLine methods and properties:
|
Description |
|
|
EvLine AsLineBase() SummaryDetermines if an object is a line (editable, virtual or sounder-detected bottom line). ParametersNone. ReturnEvLine if object is a line. Null if object is not a line. |
|
|
EvLineEditable AsLineEditable() SummaryDetermines if the line is an editable line. ParametersNone. ReturnEvLineEditable if the line is an editable line. Null if the line is not an editable line. ExampleDim EvApp: Set EvApp = CreateObject("EchoviewCom.EvApplication")
If EvApp.EvFiles.Count = 0 Then
MsgBox "Please open an EV file and run this script again."
WScript.Quit
End If
Dim EvFile: Set EvFile = EvApp.EvFiles(0)
Dim EvLine: Set EvLine = EvFile.Lines.FindByName("Line1")
Dim EvLineEdit: Set EvLineEdit = EvLine.AsLineEditable
If EvLineEdit Is Nothing Then
MsgBox "Error, not editable " & EvLine.Name
Else
'MsgBox "The line " & EvLine.Name & " is not virtual."
See also Lines example. |
|
|
Export(string FileName) SummaryExport this line to the given file. ParametersReturnWhether successful. |
|
|
(read-write) string Name SummaryAccess or change the name of the line. |
See also
Scripting with COM objects
COM object hierarchy
EvLinesCollection
EvLine object
EvFileProperties object
EvLineEditable object