I have not found any problems reading your files and I closed the bug report. The inserts are reporting the correct number of attributes with the correct values read from the dxf. You have sent me two dxf files "Debut DXF.dxf" and "Method
Output.dxf", if the second file is, as the name implies, the output of your program, the saving process is also done correctly. It contains 5 inserts with 5 attributes each, but looks like that you only have applied changes to the attribute values of
the first insert. So, the error must be there, in the way you are assigning the new values, not in the way you are accessing the attributes.
Check the variables you are using as counters specially "i" and "inserted". There are a few problem with your variable "i" that probably are messing with how you are accessing the values of your spreadsheet.
At the beginning of your code you are initializing the variable with
then inside the first loop
foreach (Insert Block in Doc.Inserts)
it is assigned with a new value
There is no need to initialize "i" to two since it will be overridden, also every time a new insert is read it will be assigned the same value. You decide if this is intentional or not.
Later that same variable is being used as an iterator for your last loop,
for (i = i + inserted; i < Rows; i++)
also that index "i" is not only being incremented by one in the for loop "i++", but also in "i=i+1;". Clean the way you iterate through the values in your spreadsheet, because I do not think is doing what you think is doing.