Home > PCB_PrimitiveRegion > getAllPrimitiveId
PCB_PrimitiveRegion.getAllPrimitiveId() 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.
获取所有区域的图元 ID
Signature
typescript
getAllPrimitiveId(layer?: TPCB_LayersOfRegion, ruleType?: Array<EPCB_PrimitiveRegionRuleType>, primitiveLock?: boolean): Promise<Array<string>>;
1
Parameters
Parameter | Type | Description |
---|---|---|
layer | (Optional) 层 | |
ruleType | Array<EPCB_PrimitiveRegionRuleType> | (Optional) 区域规则类型,只会匹配所有规则类型均一致的图元 |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<Array<string>>
区域的图元 ID 数组