CreateWire (Schematic Editor)

Create a wire.

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

["NAME:WireData"

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

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

"Points:=", Points on wire]

<Attributes> Array

["NAME:Attributes",

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

Note: Page 1 always exists

[out,retval] string id]

Return Value String with 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.

Symbol tab of the Properties window displaying the schematic ID
Python Syntax CreateWire(<WireData>, <Attributes>)
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])