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;