Home > PCB_Net > getAllPrimitivesByNet
PCB_Net.getAllPrimitivesByNet() 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
getAllPrimitivesByNet(net: string, primitiveTypes?: Array<EPCB_PrimitiveType>): Promise<Array<IPCB_Primitive>>;
1
Parameters
Parameter | Type | Description |
---|---|---|
net | string | 网络名称 |
primitiveTypes | Array<EPCB_PrimitiveType> | (Optional) 图元类型数组,如若指定图元类型不存在网络属性,返回的数据将恒为空 |
Returns
Promise<Array<IPCB_Primitive>>
图元对象数组