Harness proD API Help
EPLAN.Harness.API Namespace / Library Class / AddLibraryConnection Method
Path to the connection file (*.hxcn).
In This Topic
    AddLibraryConnection Method (Library)
    In This Topic
    Add an existing connection to a library.
    Syntax
    public void AddLibraryConnection( 
       string connectionFilePath
    )

    Parameters

    connectionFilePath
    Path to the connection file (*.hxcn).
    Exceptions
    ExceptionDescription
    This file was not found.
    The exception that is thrown when the file has the wrong extension.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Argument is null.
    Remarks
    Library related with this connection is not set as active after this method. It is only added into RecentLibraries. Use ConnectToLibrary(BaseLibraryConnection,String,Boolean) or ConnectToLibrary(BaseLibraryConnection,String,String,Boolean) to set library as active.
    See Also