CreateWire (Schematic Editor)

Create a wire

UI Access Draw>Wire
Parameters
Name Type Description
<WireData> Array

Array("NAME:WireData" _

"Name:=", string), // [Opt=default name] Name for this wire

"Id:=", int), // Wire idnum

"Points:=", Points on wire)

<Attributes> Array

Array("NAME:Attributes", _

"Page:=", int, _ // [Opt=1] Page number (one-based)

Note: Page 1 always exists

[out,retval] string id)

Return Value String

Unique id

Wire is created and its return value has the format Wire@<netName>;<schematicID>;<segment index list>

The Schematic ID can be found in the Symbol tab of the Properties window when you select the wire. The wire net name appears in the General tab. The parameter segment index list indicates the number of segments i.e. the segment count.

 

 

Python Syntax CreateWire()
Python Example

oEditor.CreateWire(

["NAME:WireData", "Name:=", "", "Id:=", 41, "Points:=", [ _

"(-0.033020, 0.015240)", "(-0.017780, 0.015240)",

"(-0.017780, 0.012700)"]], ["NAME:Attributes", "Page:=", 1])