R2:底板 / 刀片布局布线脚本、快照、截图与规划文档更新(含外壳、打印件、布线归档)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
这个提交包含在:
+10
@@ -0,0 +1,10 @@
|
||||
await eda.dmt_EditorControl.openDocument('f126ffb29c92f9b2');
|
||||
await new Promise(r=>setTimeout(r,1200));
|
||||
const MIL=39.3701, r=[];
|
||||
const lines=await eda.pcb_PrimitiveLine.getAll(), vias=await eda.pcb_PrimitiveVia.getAll();
|
||||
const cx=126.87, cy=69.24;
|
||||
for (const l of lines){ if(l.getState_Net()!=='KEY_RCLK') continue;
|
||||
const sx=l.getState_StartX()/MIL, sy=l.getState_StartY()/MIL, ex=l.getState_EndX()/MIL, ey=l.getState_EndY()/MIL;
|
||||
if(Math.min(Math.hypot(sx-cx,sy-cy),Math.hypot(ex-cx,ey-cy))<4.0) r.push(['L'+l.getState_Layer(), +sx.toFixed(3),+sy.toFixed(3),+ex.toFixed(3),+ey.toFixed(3), +(l.getState_LineWidth()/MIL).toFixed(2)]); }
|
||||
for (const v of vias){ if(v.getState_Net()!=='KEY_RCLK') continue; const x=v.getState_X()/MIL,y=v.getState_Y()/MIL; if(Math.hypot(x-cx,y-cy)<4.0) r.push(['VIA',+x.toFixed(3),+y.toFixed(3)]); }
|
||||
return r;
|
||||
在新工单中引用
屏蔽一个用户