SetNetColor (Layout Editor)

Sets the color of a target net.

UI Access From the Nets window, right-click a net and select List to open the Design List window. From any row, double-click the bar in the Color column to open the Color window. Select a new color, then click OK to change the net's color.
Parameters
Name Type Description
<Parameters> Array

Structured array containing these parameters in order:

  • <NAME:Args>
  • <Name>
  • <Color>
<NAME:Args> String Required first parameter which must have the specified value (i.e., "Args").
<Name> String Name of the target net.
<Color> Array

Structured array containing the RGB (i.e., Red, Green, Blue) color code, which the target net will be set to:

  • <R>
  • <G>
  • <B>
  • <Check_Containment>
  • <Via_Persistence>
<R> Integer Value of red color.
<G> Integer Value of green color.
<B> Integer Value of blue color.
Return Value None.

 

Python Syntax SetNetColor([<NAME:Args>, <Name>, <Color>, [<R>, <G>, <B>]])
Python Example

oEditor.SetNetColor(

[

"NAME:Args",

"Name:=", "Net_1",

"Color:=", ["R:=", 0, "G:=", 0, "B:=", 160]

])

 

VB Syntax SetNetColor(<Name:Args>, <Name>, <Color>, (<R>, <G>, <B>))
VB Example

oEditor.SetNetColor Array("NAME:Args", "Name:=", "Net_1", "Color:=", Array("R:=", 0, "G:=", 0, "B:=", 160))