Eplan Platform API
Eplan.EplApi.HEServices Namespace / DeviceService Class / CreateDevice Method / CreateDevice(Project,String,String,FunctionPropertyList,List<IFunctionBase>) 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 fot 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.
List of Eplan.EplApi.DataModel.IFunctionBase to which created functions will be stored.

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

    Parameters

    oProject
    Project in which the new device will be.
    strPartNumber
    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 fot 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.
    oFunctionsList
    List of Eplan.EplApi.DataModel.IFunctionBase to which created functions will be stored.
    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 stores both 2D, and 3D objects to passed List of Eplan.EplApi.DataModel.IFunctionBase.
    See Also