Home > PCB_PrimitivePad > create
PCB_PrimitivePad.create() method
创建焊盘
签名
typescript
create(layer: TPCB_LayersOfPad, padNumber: string, x: number, y: number, rotation?: number, pad?: TPCB_PrimitivePadShape, net?: string, hole?: TPCB_PrimitivePadHole | null, holeOffsetX?: number, holeOffsetY?: number, holeRotation?: number, metallization?: boolean, padFunction?: EPCB_PrimitivePadFunction, specialPad?: TPCB_PrimitiveSpecialPadShape, solderMaskAndPasteMaskExpansion?: IPCB_PrimitiveSolderMaskAndPasteMaskExpansion | null, heatWelding?: IPCB_PrimitivePadHeatWelding | null, primitiveLock?: boolean): Promise<IPCB_PrimitivePad | undefined>;
1
参数名
参数 | 类型 | 描述 |
---|---|---|
layer | 层 | |
padNumber | string | 焊盘编号 |
x | number | 位置 X |
y | number | 位置 Y |
rotation | number | (Optional) 旋转角度 |
pad | (Optional) 焊盘外形 | |
net | string | (Optional) 网络名称 |
hole | TPCB_PrimitivePadHole | null | (Optional) 孔, |
holeOffsetX | number | (Optional) 孔偏移 X |
holeOffsetY | number | (Optional) 孔偏移 Y |
holeRotation | number | (Optional) 孔相对于焊盘的旋转角度 |
metallization | boolean | (Optional) 是否金属化孔壁 |
padFunction | (Optional) 焊盘功能 | |
specialPad | (Optional) 特殊焊盘外形 | |
solderMaskAndPasteMaskExpansion | (Optional) 阻焊/助焊扩展, | |
heatWelding | IPCB_PrimitivePadHeatWelding | null | (Optional) 热焊优化参数 |
primitiveLock | boolean | (Optional) 是否锁定 |
返回值
Promise<IPCB_PrimitivePad | undefined>
焊盘图元对象