CreateTerminalDevice(Project,String,String,String,String,Boolean) Method
In This Topic
Creates new terminals for a new or existing DT according to a particular numbering pattern. The terminals are generated from the function templates of the selected part, with the numbering pattern defining the terminal designations. The first terminal generated becomes the main terminal per device and receives the selected part.
Syntax
public bool CreateTerminalDevice(
Project ,
string ,
string ,
string ,
string ,
bool
)
public:
bool CreateTerminalDevice(
Project^ ,
String^ ,
String^ ,
String^ ,
String^ ,
bool
)
Parameters
- oProject
- The project in which the new terminals will be.
- strFullDeviceTag
- This parameter determines the DT of the new terminals.
- strPartNumber
- The article's part number.
- strPartVariant
- The article's variant.
- strNumberingPattern
- Numbering pattern.
- bNumberByLevels
- If set to true, the terminals are numbered by level.
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 terminals. |
See Also