Harness proD API Help
EPLAN.Harness.API Namespace / HpdApi 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 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.
    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.
    HpdApi api = HpdApi.GetInstance();
    api.Init();
    
    //Do stuff with API
    See Also