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

    System.Object
       EPLAN.Harness.API.Library

    Syntax
    public sealed class Library 
    Remarks

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

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

    Example
    Initialize the API and use it.
    Library api = Library.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 connected library. Null if no library is connected. Only one library can be connected at once.  
    Public PropertyHpD version which is loaded by API.  
    Public PropertyHarness proD Library application settings.  
    Public Property List of recently connected libraries.  
    Public PropertyHarness proD application's skin colors.  
    Public PropertyGet state of the Library API. To initialize the API, call Init(String,String[]) Failed API cannot be initialized nor used.  
    Top
    Public Methods
     NameDescription
    Public MethodAdd an existing connection to a library.  
    Public MethodClose HpD Library API. You should call this when you are done with the HpD Library 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 MethodOverloaded.  Connect to library.  
    Public MethodOverloaded. Create new EPLAN Platform Master Data (SQL Server) library using windows authentication.  
    Public MethodOverloaded. Create new MS SQL Server library using windows authentication.  
    Public MethodCreate new file-system-based library.  
    Public Methodstatic (Shared in Visual Basic) Get instance of HpD Library API.  
    Public Method Loads HpD and initializes the Library API. Must be called from the Main Thread of an application.  
    Public MethodOverloaded. Upgrade library specified by the connection to the current version.  
    Top
    See Also