Home > PCB_PrimitivePour > modify
PCB_PrimitivePour.modify() 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
modify(primitiveId: string | IPCB_PrimitivePour, property: {
net?: string;
layer?: TPCB_LayersOfCopper;
complexPolygon?: IPCB_Polygon;
pourFillMethod?: EPCB_PrimitivePourFillMethod;
preserveSilos?: boolean;
pourName?: string;
pourPriority?: number;
lineWidth?: number;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitivePour | undefined>;
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Parameters
Parameter | Type | Description |
---|---|---|
primitiveId | string | IPCB_PrimitivePour | 图元 ID |
property | { net?: string; layer?: TPCB_LayersOfCopper; complexPolygon?: IPCB_Polygon; pourFillMethod?: EPCB_PrimitivePourFillMethod; preserveSilos?: boolean; pourName?: string; pourPriority?: number; lineWidth?: number; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitivePour | undefined>
覆铜边框图元对象,undefined
表示修改失败