Home > SCH_PrimitiveBus > create
SCH_PrimitiveBus.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
typescript
create(busName: BusNetGroupCreateOptions['net'], line: BusNetGroupCreateOptions['line'], color?: BusNetGroupCreateOptions['color'], lineWidth?: BusNetGroupCreateOptions['lineWidth'], lineType?: BusNetGroupCreateOptions['lineType']): ISCH_PrimitiveBus | undefined;
1
Parameters
Parameter | Type | Description |
---|---|---|
busName | BusNetGroupCreateOptions['net'] | 总线名称 |
line | BusNetGroupCreateOptions['line'] | 多段线坐标组,每段都是连续的一组 |
color | BusNetGroupCreateOptions['color'] | (Optional) 总线颜色, |
lineWidth | BusNetGroupCreateOptions['lineWidth'] | (Optional) 线宽,范围 |
lineType | BusNetGroupCreateOptions['lineType'] | (Optional) 线型, |
Returns
ISCH_PrimitiveBus | undefined
总线图元对象