Eplan Platform API
Eplan.EplApi.HEServices Namespace / DeviceService Class / CreateDevice Method / CreateDevice(String,String,Page,PointD) Method
The article's part number.
The article's variant. If not existing variant is specified, the first available variant is selected.
A page to insert the article's macro on.
Insertion point of the macro.

In This Topic
    CreateDevice(String,String,Page,PointD) Method
    In This Topic
    Creates a new device in the project and inserts it on a page. If the article has a macro specified, the macro is inserted onto the specified page.
    Syntax

    Parameters

    strPartNummer
    The article's part number.
    strPartVariant
    The article's variant. If not existing variant is specified, the first available variant is selected.
    pPage
    A page to insert the article's macro on.
    ptInsert
    Insertion point of the macro.
    Exceptions
    ExceptionDescription
    Is thrown in case of invalid arguments.
    Is thrown, if some of the arguments are NULL.
    A necessary internal interface for creating devices could not be created.
    If an error occurred while creating a device.
    Remarks
    Method does not return 3D objects even when they are created. To get 3D objects use other overloaded method instead. Warning: Inserted functions are not numerated by the method.
    See Also