await eda.dmt_EditorControl.openDocument('f126ffb29c92f9b2'); await new Promise(r=>setTimeout(r,1000)); const M=39.3700787; const comps = await eda.pcb_PrimitiveComponent.getAll(); const name = {}; for (const c of comps) name[c.getState_PrimitiveId()] = c.getState_Designator(); const ids = Object.keys(name).sort((a,b)=>b.length-a.length); const out=[]; for (const p of await eda.pcb_PrimitivePad.getAll()) { const net = p.getState_Net(); if (!net) continue; if (!/^VO[1-5]_P$/.test(net)) continue; const pid = p.getState_PrimitiveId(); let own=null; for (const id of ids) if (pid.length>id.length && pid.indexOf(id)===0) { own=name[id]; break; } out.push([net, own, p.getState_PadNumber(), +(p.getState_X()/M).toFixed(2), +(p.getState_Y()/M).toFixed(2), p.getState_Layer()]); } out.sort(); return out;