await eda.dmt_EditorControl.openDocument('7b9524b6aaf6f235'); await new Promise(r=>setTimeout(r,2000)); const out = {}; for (const k of ['pcb_PrimitiveHole','pcb_PrimitivePad','pcb_PrimitiveRegion']) { try { const a = await eda[k].getAll(); out[k] = a ? a.length : 'null'; } catch(e){ out[k]='no api'; } } try { const hs = await eda.pcb_PrimitiveHole.getAll(); out.holes = hs.map(h=>[Math.round(h.x/3.937)/10, Math.round(h.y/3.937)/10, h.holeDiameter]); } catch(e){ out.holes = 'x'; } return out;