Any reason you can’t have another column with an IF statement? You can do it with arrays, but it’s not overly easy.
So you have a cell somewhere with a number, say 5 (to use your example) in cell C1.
A1:A10 is your co-ordinates.
B1 is =If(count($B$1:B1)<=C1,A1,””), drag down, then column B will be populated for the first rows up to the number you specify in cell C1. You can then make your CAD program reference column B.
That assumes you will always want the first values though. If you want a varying subset of the data it’s harder, and I’d use an array.