Home > PCB_PrimitivePolyline > create
PCB_PrimitivePolyline.create() method
创建折线
Signature
typescript
create(net: string, layer: TPCB_LayersOfLine, polygon: IPCB_Polygon, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitivePolyline | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
net | string | 网络名称 |
layer | 层 | |
polygon | 单多边形对象 | |
lineWidth | number | (Optional) 线宽 |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<IPCB_PrimitivePolyline | undefined>
折线图元对象