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
create(libraryUuid: string, deviceName: string, classification?: ILIB_ClassificationIndex, association?: {
symbolType?: ELIB_SymbolType;
symbolUuid?: string;
symbol?: {
uuid: string;
libraryUuid: string;
};
footprintUuid?: string;
footprint?: {
uuid: string;
libraryUuid: string;
};
model3D?: {
uuid: string;
libraryUuid: string;
};
imageData?: File | Blob;
}, description?: string, property?: ILIB_DeviceExtendPropertyItem): Promise<string | undefined>;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Parameters
Parameter | Type | Description |
---|---|---|
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
deviceName | string | 器件名称 |
classification | (Optional) 分类 | |
association | { symbolType?: ELIB_SymbolType; symbolUuid?: string; symbol?: { uuid: string; libraryUuid: string; }; footprintUuid?: string; footprint?: { uuid: string; libraryUuid: string; }; model3D?: { uuid: string; libraryUuid: string; }; imageData?: File | Blob; } | (Optional) 关联符号、封装、图像,指定 |
description | string | (Optional) 描述 |
property | (Optional) 其它参数,仅 |
Returns
Promise<string | undefined>
器件 UUID