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.
Get all primitives associated with the specified net
Signature
typescript
function getAllPrimitivesByNet(
net: string,
primitiveTypes?: Array<EPCB_PrimitiveType>,
): Promise<Array<IPCB_Primitive>>;1
2
3
4
2
3
4
Parameters
Parameter | Type | Description |
|---|---|---|
net | string | Net name |
primitiveTypes | Array<EPCB_PrimitiveType> | (Optional) Array of primitive types. If the specified primitive type has no net property, the returned data will always be empty |
Returns
Promise<Array<IPCB_Primitive>>
Array of primitive objects