Home > LIB_Device > searchByProperties
LIB_Device.searchByProperties() 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
searchByProperties(properties: ILIB_DevicePropertiesForSearch, libraryUuid?: string, classification?: Array<string>, symbolType?: ELIB_SymbolType, itemsOfPage?: number, page?: number): Promise<Array<ILIB_DeviceSearchItem>>;1
Parameters
Parameter | Type | Description |
|---|---|---|
properties | ILIB_DevicePropertiesForSearch | 属性 |
libraryUuid | string | (Optional) 库 UUID,默认为系统库,可以使用 LIB_LibrariesList 内的接口获取 |
classification | Array<string> | (Optional) 分类,默认为全部 ADD since EDA v4 |
symbolType | (Optional) 符号类型,默认为全部 | |
itemsOfPage | number | (Optional) 一页搜索结果的数量 |
page | number | (Optional) 页数 |
Returns
Promise<Array<ILIB_DeviceSearchItem>>
搜索到的器件属性的列表