API Help
EPLAN API / User Guide / API DataModel
In This Topic
    API DataModel
    In This Topic

    The Electrotechnical DataModel (Eplan.EplApi.DataModel Namespace) includes all the classes/objects belonging to an EPLAN project, like the project itself, pages, functions, placements, etc. Every class is derived from the base class StorableObject and has its specific properties. In contrary to the EPLAN 21 data model, EPLAN does not strictly distinguish between the graphical and the logical information. A page for instance as well keeps record of the functions (logical) as well as the placements (graphical). there is no device object, which stores the functions with the same device tag. 

     

    Note The class Function is named like a keyword of Visual Basic. In order to get no compilation errors in VB, you need to always refer to a Function object by its complete name space: Eplan.EplApi.DataModel.Function or in square brackets: [Function]. 

     

    We recommend you to explicitly release Datamodel objects, when they are no longer needed. Especially in loops, which set large amount of properties. Make sure, the garbage collector has the possibility to clean up these objects, by frequently calling System.GC.WaitForPendingFinalizers(). 

     

    Please take into account that generally data model objects store length values in millimeters and dimensions are according to graphical coordinate system.

    See Also