Home > PCB_PrimitiveArc > create
PCB_PrimitiveArc.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(net: string, layer: TPCB_LayersOfLine, startX: number, startY: number, endX: number, endY: number, arcAngle: number, lineWidth?: number, interactiveMode?: EPCB_PrimitiveArcInteractiveMode, primitiveLock?: boolean): Promise<IPCB_PrimitiveArc | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
net | string | 网络名称 |
layer | 层 | |
startX | number | 起始位置 X |
startY | number | 起始位置 Y |
endX | number | 终止位置 X |
endY | number | 终止位置 Y |
arcAngle | number | 圆弧角度 |
lineWidth | number | (Optional) 线宽 |
interactiveMode | (Optional) 交互模式 | |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<IPCB_PrimitiveArc | undefined>
圆弧线图元对象