Home > LIB_Device > modify
LIB_Device.modify() 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
modify(deviceUuid: string, libraryUuid: string, deviceName?: string, classification?: ILIB_ClassificationIndex | null, association?: {
symbolUuid?: string;
footprintUuid?: string | null;
imageData?: Blob | null;
}, description?: string | null, property?: {
name?: string | null;
designator?: string;
addIntoBom?: boolean;
addIntoPcb?: boolean;
net?: string;
manufacturer?: string | null;
manufacturerId?: string | null;
supplier?: string | null;
supplierId?: string | null;
[key: string]: boolean | number | string | undefined | null;
}): Promise<boolean>;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Parameters
Parameter | Type | Description |
---|---|---|
deviceUuid | string | 器件 UUID |
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
deviceName | string | (Optional) 器件名称 |
classification | ILIB_ClassificationIndex | null | (Optional) 分类 |
association | { symbolUuid?: string; footprintUuid?: string | null; imageData?: Blob | null; } | (Optional) 关联符号、封装、图像 |
description | string | null | (Optional) 描述 |
property | { name?: string | null; designator?: string; addIntoBom?: boolean; addIntoPcb?: boolean; net?: string; manufacturer?: string | null; manufacturerId?: string | null; supplier?: string | null; supplierId?: string | null; [key: string]: boolean | number | string | undefined | null; } | (Optional) 其它参数 |
Returns
Promise<boolean>
操作是否成功
Remarks
如希望清除某些属性,则将其的值设置为 null