Home > PCB_PrimitiveVia > modify
PCB_PrimitiveVia.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_PrimitiveVia, property: {
net?: string;
x?: number;
y?: number;
holeDiameter?: number;
diameter?: number;
viaType?: EPCB_PrimitiveViaType;
designRuleBlindViaName?: string | null;
solderMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null;
primitiveLock?: boolean;
}): Promise<IPCB_PrimitiveVia | 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_PrimitiveVia | 图元 ID |
property | { net?: string; x?: number; y?: number; holeDiameter?: number; diameter?: number; viaType?: EPCB_PrimitiveViaType; designRuleBlindViaName?: string | null; solderMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null; primitiveLock?: boolean; } | 修改参数 |
Returns
Promise<IPCB_PrimitiveVia | undefined>
过孔图元对象