CreateLine (Schematic Editor)

Creates a line.

UI Access Draw > Primitive > Line
Parameters
Name Type Description
<LineData> Array

["NAME:LineData"

"Points:=", Array of points,

"LineWidth:=", double, // the width of the line, in meters

"Color:=", int, // the RBG value of the line color

"Id:=", int), // [Opt=New id] Id for this item

<Attributes> Array

["NAME:Attributes",

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

[out,retval] string id)

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.

Symbol tab of the Properties window displaying the schematic ID
Python Syntax CreateLine(<LineData>,<Attributes>)
Python Example

oEditor.CreateLine (

["NAME:LineData",

"Points:=", ["(-0.055652, 0.020669)",

"(-0.036923, 0.011257)", "(-0.023144, 0.018049)"],

"Line­Width:=", 0, "Color:=", 0, "Id:=", 22)],

["NAME:Attributes", "Page:=", 1])