const NETS = ['UP_DP','UP_DM','USB_DP','USB_DM','USB3_DP','USB3_DM','USB4_DP','USB4_DM','USB5_DP','USB5_DM']; const L = await eda.pcb_PrimitiveLine.getAll(); const c = {}; for (const o of L) if (NETS.includes(o.net)) c[o.net]=(c[o.net]||0)+1; const bar = (document.body.innerText||'').split(String.fromCharCode(10)).map(s=>s.trim()).filter(s=>s.indexOf('自动布线')===0); return {perNet: c, total: L.length, vias:(await eda.pcb_PrimitiveVia.getAll()).length, bar};