Home > SCH_PrimitiveComponent > getAllPrimitiveId
SCH_PrimitiveComponent.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(componentType?: string, allSchematicPages?: boolean): Promise<Array<string>>;
1
Parameters
Parameter | Type | Description |
---|---|---|
componentType | string | (Optional) 器件类型 |
allSchematicPages | boolean | (Optional) 是否获取所有原理图图页的器件 |
Returns
Promise<Array<string>>
器件的图元 ID 数组