CreateComponent (Schematic Editor)
Creates a component of a given type.
| UI Access | N/A. | |||||||||
| Parameters |
|
|||||||||
| Return Value |
String containing unique ID in the format: CompInst@<CompName>;<compInstID>;<optional schematicID> For example, the return value You can also see these details in the Properties window when you select the created component. |
| Python Syntax | CreateComponent(<params>, <attributes>) |
| Python Example |
|
| VB Syntax | CreateComponent <params>, <attributes> |
| VB Example |
Set oProject = oDesktop.SetActiveProject("Project1") Set oDesign = oProject.SetActiveDesign("Circuit1") Set oEditor = oDesign.SetActiveEditor("SchematicEditor") Dim CompID CompID = oEditor.CreateComponent Array("NAME:ComponentProps", "Name:=", "Maxwell Circuit Elements\Passive Elements:Res", "Id:=", "1"), Array("NAME:Attributes", "Page:=", 1, "X:=", -0.01524, "Y:=", 0.00508, "Angle:=", 0, "Flip:=", false) |