Home > LIB_Footprint > copy
LIB_Footprint.copy() 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
copy(footprintUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex, newFootprintName?: string): Promise<string | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
footprintUuid | string | 封装 UUID |
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
targetLibraryUuid | string | 目标库 UUID |
targetClassification | (Optional) 目标库内的分类 | |
newFootprintName | string | (Optional) 新封装名称,如若目标库内存在重名封装将导致复制失败 |
Returns
Promise<string | undefined>
目标库内新封装的 UUID