API Help
Eplan.EplApi.HEServices Namespace / DeviceService Class / CreateDevice Method / CreateDevice(Project,String,String,FunctionPropertyList) Method
Project in which the new device will be.
Part number.
Part variant. If not existing variant is specified, then by default is selected a first available part's variant.
Property list for the hierarchy properties. This parameter may be NULL. If the parameter is NULL or the list doesn't contain code letter and counter properties, the name of the device will be generated in accordance to the device numeration settings.

In This Topic
    CreateDevice(Project,String,String,FunctionPropertyList) Method
    In This Topic
    Create a new device.
    Syntax

    Parameters

    oProject
    Project in which the new device will be.
    strPartNummer
    Part number.
    strPartVariant
    Part variant. If not existing variant is specified, then by default is selected a first available part's variant.
    pLocationList
    Property list for the hierarchy properties. This parameter may be NULL. If the parameter is NULL or the list doesn't contain code letter and counter properties, the name of the device will be generated in accordance to the device numeration settings.
    Exceptions
    ExceptionDescription
    Is thrown in case of invalid \arguments.
    Is thrown, if some argument was not passed.
    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 object use other overloaded method instead.
    See Also