CreateLine (Schematic Editor)
Creates a line.
| UI Access | Draw>Primitive>Line | |||||||||
| Parameters |
|
|||||||||
| Return Value | String
Unique id |
Line is created and the returned value has the format SchObj@<schematicID>
The Schematic ID can be found on the Symbol tab of the Properties window when you select the line.
| Python Syntax | CreateLine() |
| Python Example |
|
| VB Syntax | CreateLine() |
| VB Example |
|
VB Example:
Dim oAnsoftApp
Dim oDesktop
Dim oProject
Dim oDesign
Dim oEditor
Dim oModule
Set oAnsoftApp = CreateObject("Ansoft.ElectronicsDesktop")
Set oDesktop = oAnsoftApp.GetAppDesktop()
oDesktop.RestoreWindow
Set oProject = oDesktop.SetActiveProject("Project4")
Set oDesign = oProject.SetActiveDesign("Circuit1")
Set oEditor = oDesign.SetActiveEditor("SchematicEditor")
LineID = oEditor.CreateLine(Array("NAME:LineData", "Points:=", Array("(0.050800, 0.106680)", _
"(0.124460, 0.106680)", "(0.124460, 0.106680)"), "LineWidth:=", 0, "Color:=", _
0, "Id:=", 169), Array("NAME:Attributes", "Page:=", 1))
MsgBox "LineID = " & LineID