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
Exception | Description |
ArgumentException | Is thrown in case of invalid
\arguments. |
ArgumentNullException | Is thrown, if some argument was not
passed. |
ApplicationException | A necessary internal interface for
creating devices could not be created. |
BaseException | If an Error occurred while creating a
device. |
See Also