const A = [ [6299.216, 4724.412, 6102.365, 4921.262], [196.851, 4921.262, 0, 4724.412], [0, 196.851, 196.851, 0] ]; const out = []; for (const [x0,y0,x1,y1] of A) { const r = await eda.pcb_PrimitiveArc.create('', 11, x0, y0, x1, y1, 90, 5); out.push(r ? r.primitiveId : null); } await eda.pcb_Document.save(); return {ids: out};