await eda.dmt_EditorControl.openDocument('f126ffb29c92f9b2'); await new Promise(r=>setTimeout(r,1200)); const MIL=39.3701; const cnt=async()=>{ const L=await eda.pcb_PrimitiveLine.getAll(); return L.filter(l=>l.getState_Net()==='KEY_RCLK' && (Math.hypot(l.getState_StartX()/MIL-126.865,l.getState_StartY()/MIL-69.236)<0.05 || Math.hypot(l.getState_EndX()/MIL-126.865,l.getState_EndY()/MIL-69.236)<0.05)).map(l=>[l.getState_PrimitiveId(), +(l.getState_StartX()/MIL).toFixed(3), +(l.getState_StartY()/MIL).toFixed(3), +(l.getState_EndX()/MIL).toFixed(3), +(l.getState_EndY()/MIL).toFixed(3)]); }; const r=await eda.pcb_PrimitiveLine.create('KEY_RCLK', 2, 126.865*MIL, 69.236*MIL, 126.865*MIL, 70.521*MIL, 0.2*MIL); const mid=await cnt(); await eda.pcb_Document.save(); await new Promise(r=>setTimeout(r,1500)); const after=await cnt(); return {dupCreated:!!r, mid, after};