CreateLine (Schematic Editor)

Creates a line.

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

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

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.

 

 

Python Syntax CreateLine()
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])