Thank you for your answer.
In this case I have to go with a different solution. I would import the dxf file as many times as I need and than I would do the nest by hand.
I tried to modify the DXF batch processor to import the dxf file multiple times based on the part quantity.
I can not find a way to modify the filename and retrieve the quantity.
filename = "2_part", where the 2 means the quantity of the part.
My approach would be storing the filename, find the "_" position in the filename and get the quantity which is located left to the "_". The last step would be storing the quantity as a number.
in excel it would look like this:
quantity = NUMBERVALUE(LEFT(filename,FIND("_",filename,1)-1))
Than an easy loop would do the trick.
for i = 1, quantity do
Is there a way to retrieve the quantity based on the filename in LUA? Any help would be appreciated.