Home > PCB_PrimitiveFill > create
PCB_PrimitiveFill.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(layer: TPCB_LayersOfFill, complexPolygon: IPCB_Polygon, net?: string, fillMode?: EPCB_PrimitiveFillMode, lineWidth?: number, primitiveLock?: boolean): Promise<IPCB_PrimitiveFill | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
layer | 层 | |
complexPolygon | 复杂多边形对象 | |
net | string | (Optional) 网络名称 |
fillMode | (Optional) 填充模式 | |
lineWidth | number | (Optional) 线宽 |
primitiveLock | boolean | (Optional) 是否锁定 |
Returns
Promise<IPCB_PrimitiveFill | undefined>
填充图元对象