Home > SCH_PrimitiveComponent > createCbbSymbol
SCH_PrimitiveComponent.createCbbSymbol() 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
createCbbSymbol(cbbSymbol: {
libraryUuid: string;
cbbUuid: string;
uuid?: string;
}, x: number, y: number, rotation?: number, mirror?: boolean): Promise<ISCH_PrimitiveCbbSymbolComponent | undefined>;1
2
3
4
5
2
3
4
5
Parameters
Parameter | Type | Description |
|---|---|---|
cbbSymbol | { libraryUuid: string; cbbUuid: string; uuid?: string; } | 关联库复用模块符号,libraryUuid 是 CBB 工程所在库的 UUID,cbbUuid 是 CBB 工程的 UUID,uuid 是 CBB 工程内符号的 UUID,name 是符号的显示名称 |
x | number | 坐标 X |
y | number | 坐标 Y |
rotation | number | (Optional) 旋转角度 |
mirror | boolean | (Optional) 是否镜像 |
Returns
Promise<ISCH_PrimitiveCbbSymbolComponent | undefined>
复用模块符号图元对象