Home > PCB_Net > getNetLength
PCB_Net.getNetLength() 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.
获取指定网络的长度
Signature
typescript
getNetLength(net: string): Promise<number | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
net | string | 网络名称 |
Returns
Promise<number | undefined>
网络长度,undefined
为不存在该网络,0
为网络无长度