CreateDevice(String,String,Page,PointD) Method
                In This Topic
            
            Creates a new device in the project and inserts it on a page. If the article has a macro specified, the macro is inserted onto the specified page.
            
            
            Syntax
            
        
            Parameters
- strPartNummer
- The article's part number.
- strPartVariant
- The article's variant. If not existing variant is specified, the first available variant is selected.
- pPage
- A page to insert the article's macro on.
- ptInsert
- Insertion point of the macro.
 
            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. | 
| BaseException | If an error occurred while creating a device. | 
See Also