Home > LIB_Device > create
LIB_Device.create() 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
create(libraryUuid: string, deviceName: string, classification?: ILIB_ClassificationIndex, association?: {
symbolType?: ELIB_SymbolType;
symbolUuid?: string;
footprintUuid?: string;
}, description?: string, property?: ILIB_DeviceExtendPropertyItem): Promise<string | undefined>;
1
2
3
4
5
2
3
4
5
Parameters
Parameter | Type | Description |
---|---|---|
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
deviceName | string | 器件名称 |
classification | (Optional) 分类 | |
association | { symbolType?: ELIB_SymbolType; symbolUuid?: string; footprintUuid?: string; } | (Optional) 关联符号、封装、图像,指定 |
description | string | (Optional) 描述 |
property | (Optional) 其它参数,仅 |
Returns
Promise<string | undefined>
器件 UUID