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
Exception | Description |
ArgumentException | Is thrown in case of invalid arguments. |
ArgumentNullException | Is thrown, if some of the arguments are NULL. |
ApplicationException | A necessary internal interface for creating devices could not be created. |
Eplan.EplApi.Base.BaseException | If an error occurred while creating a device. |
See Also