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

    System.Object
       EPLAN.Harness.API.Studio

    Syntax
    public sealed class Studio 
    Remarks

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

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

    Example
    Initialize the API and use it.
    Studio api = Studio.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 PropertyHpD version which is loaded by API.  
    Public PropertyHarness proD application's skin colors.  
    Public PropertyGet state of the Studio 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 Studio API. You should call this when you are done with the HpD Studio API. It sets API Status to 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 Studio API. Must be called from the Main Thread of an application.  
    Public MethodOverloaded.  Open a HpD project.  
    Public MethodResets all Harness proD Studio settings to the default values.  
    Public Method Restore a HpD project.  
    Top
    See Also