COM object EvLineEditable

EvApplication > EvFileCollection > EvFile > EvLinesCollection > EvLine > EvLineEditable

 

View the COM map and the COM summary.

The EvLineEditable object gives you the ability to access or to change editable line names and the ability to export editable lines from an EV file.

The EvFile.Lines[] property lists all the lines in an EV file and is an EvLinesCollection.

Notes:

  • EvLine gives you the ability to access lines, change line names and the ability to export 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.

EvLineEditable methods and properties are detailed below:

AsLineBase
AsLineEditable
Export
Name
OverwriteWith

 

Description

AsLineBase

EvLine AsLineBase()

Summary

Determines if an object is a line (editable, virtual or sounder detected bottom line).

Parameters

None.

Return

EvLine if object is a line.

Null if object is not a line.

AsLineEditable

EvLineEditable AsLineEditable()

Summary

Determines if the line is an editable line.

Parameters

None.

Return

EvLineEditable if the line is an editable line.

Null if the line is not an editable line.

Example
Example
Dim 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

Export(string FileName)

Summary

Export this line to the given file.

Parameters
Return

Whether successful.

Name

(read-write) string Name

Summary

Access or change the name of the line.

OverwriteWith

(write) boolean OverwriteWith(EvLine Line)

Summary

Overwrites the specified line.

Parameters
  • Line

  • The line to over-write, this is specified by EvLine.

Return

Whether successful.

Example

See Lines example.

See also

Scripting with COM objects
COM object hierarchy
EvFile object

EvLine object

EvFileProperties object

EvLinesCollection object