Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schSetWireColor

schSetWireColor(
d_wireId
t_colorName
) => t / nil

Description

Sets the color used to draw a wire segment.

Arguments

d_wireId

The wire segment ID.

t_colorName

The wire segment's new color. Colors are referred to by the names defined in the Display Resource File.

Value Returned

t

When the color of the wire is set.

nil

When the color of the wire is not set.

Examples

Here is how to change the color of all wire segments on a given net:

procedure(mySetNetColor(net colorName)
foreach(fig net->figs
           schSetWireColor(fig colorName)
)
t
)

You could use it on the "vdd!" net in a schematic opened in VSE like this:

mySetNetColor(dbFindNetByName(geGetEditCellView() "vdd!") "red")

Related Topics

schGetWireColor

schGetWireLineStyle

schSetWireLineStyle

schCreateWire


Return to top
 ⠀
X