Harness proD API Help
EPLAN.Harness.API Namespace / Library Class / Init(String,String[]) Method
Optionally specify the installation folder of HpD (where the HStudio.exe file is).
Optionally specify application arguments (that you would otherwise pass to HStudio.exe).
Example
In This Topic
    Init(String,String[]) Method
    In This Topic
    Loads HpD and initializes the Library API. Must be called from the Main Thread of an application.
    Syntax
    public void Init( 
       string hpdDirectory,
       string[] arguments
    )

    Parameters

    hpdDirectory
    Optionally specify the installation folder of HpD (where the HStudio.exe file is).
    arguments
    Optionally specify application arguments (that you would otherwise pass to HStudio.exe).
    Exceptions
    ExceptionDescription
    The API must be in uninitialized state.
    The HpD could not be loaded.
    Unexpected error in HpD.
    Installed Harness proD application is not compatible with this version of HpdApi. Check ApiCompatibilityVersion.
    The Studio API is already initialized. Call Studio.Close before initializing the Library API application.
    Remarks

    If no path is specified, the API will try to find the HpD installation folder in registers.

    Example
    Initialize the API and use it.
    Library api = Library.GetInstance();
    api.Init();
    
    //Do stuff with API
    See Also