const L = (await eda.pcb_PrimitiveLine.getAll()).filter(o=>o.net==='USB1_DP') .map(o=>[Math.round(o.startX*1000)/1000,Math.round(o.startY*1000)/1000,Math.round(o.endX*1000)/1000,Math.round(o.endY*1000)/1000,o.layer]); const V = (await eda.pcb_PrimitiveVia.getAll()).filter(o=>o.net==='USB1_DP').map(o=>[o.x,o.y]); return {L, V};