const v = await eda.pcb_PrimitiveVia.getAll(); const l = await eda.pcb_PrimitiveLine.getAll(); const a = await eda.pcb_PrimitiveArc.getAll(); const key = o => o.primitiveId || o.uuid || o.id || ''; return {vias: v.map(key), lines: l.map(key), arcs: a.map(key)};