Home > PCB_Net > setNetColor
PCB_Net.setNetColor() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Set the color of the specified net
Signature
typescript
function setNetColor(net: string, color: IPCB_NetInfo['color']): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
net | string | Net name |
color | IPCB_NetInfo['color'] | Net color |
Returns
Promise<boolean>
Whether Set Successful, false is does not exist this net