API Help
Eplan.EplApi.ApplicationFramework Namespace / IEplAddIn Interface / OnRegister Method
true: The module is loaded at system startup and OnInit() is called.

In This Topic
    OnRegister Method (IEplAddIn)
    In This Topic
    Is called once when a new add-in is selected.
    Syntax
    bool OnRegister( 
       ref bool bLoadOnStart
    )
    bool OnRegister( 
       bool% bLoadOnStart
    ) 

    Parameters

    bLoadOnStart
    true: The module is loaded at system startup and OnInit() is called.

    Return Value

    true, if the add-in was successfully loaded and registered.
    Remarks
    When this function returns false, the add-in is not added to the system. At next start of EPLAN the add-in is not loaded. If bLoadOnStart is set to false, the API add-in assembly is registered but not loaded automatically on the next startup of EPLAN. Still all actions registered with the add-in are known in EPLAN and the addin will be loaded once one of the actions is executed. Please mind, that in this case OnInitGui(), etc. is only called, when the dll is loaded, so normal menu items from the add-in are not created, when EPLAN starts.
    See Also