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