Harness proD API Help
EPLAN.Harness.API Namespace / HpdApi Class
Members Example
In This Topic
    HpdApi Class
    In This Topic
    Main class of the HpD API.
    Object Model
    HpdApi ClassProject ClassStudioSettings Class
    Inheritance Hierarchy

    System.Object
       EPLAN.Harness.API.HpdApi

    Syntax
    public sealed class HpdApi 
    Remarks

    Use this class as an entry point to the whole API.

    This class is a singleton. Use GetInstance to obtain an instance.

    Example
    Initialize the API and use it.
    HpdApi api = HpdApi.GetInstance();
    api.Init();
    
    //Do something with API
    Public Properties
     NameDescription
    Public Propertystatic (Shared in Visual Basic)Compatibility version of this HpdApi with version of Harness proD.  
    Public Property Currently opened project. Null if no project is opened. Only one project can be opened at once.  
    Public PropertyGet state of the API. To initialize the API, call Init(String,String[]) Failed API cannot be initialized nor used.  
    Public PropertyHarness proD Studio application settings.  
    Top
    Public Methods
     NameDescription
    Public MethodClose HpD API. You should call this when you are done with the HpD API. It sets API Status to HpdApi.ApiState.Closed. Call Init(String,String[]) to initialize and use the HpD API again. Make sure you have all your documents and project properly saved and closed before this call. When used from plugin, this call has no effect.  
    Public Method Create a new HpD project.  
    Public Method Create a new HpD project from template.  
    Public Methodstatic (Shared in Visual Basic) Get instance of HpD API.  
    Public Method Loads HpD and initializes the API. Must be called from the Main Thread of an application.  
    Public Method Open a HpD project.  
    Public MethodResets all Harness proD Studio settings to the default values.  
    Public Method Restore a HpD project.  
    Top
    See Also