CreateArc (Schematic Editor)
Create an arc
| UI Access | Draw>Primitive>Arc | |||||||||
| Parameters |
|
|||||||||
| Return Value | String
Unique id |
Arc is created with the format SchObj@<schematicID>
The Schematic ID can be found on the Symbols tab of the Properties
window when you select the arc.
| Python Syntax | CreateArc() |
| Python Example |
|
| VB Syntax | CreateArc() |
| 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")
Dim ArcID
ArcID = oEditor.CreateArc(Array("NAME:ArcData", "X:=", 0.10414, "Y:=", 0.08382, "Radius:=", _
0.00915810023967853, "StartAng:=", 2.15879893034246, "EndAng:=", _
5.49778714378214, "LineWidth:=", 0, "Color:=", 0, "Id:=", 48), Array("NAME:Attributes", "Page:=", _
1))
MsgBox "Arc ID = " & ArcID