Out of interest, do you know how the attributes are added programatically?
This is done with a series of (entmake) calls.
First entmake the "INSERT" entity.
Then one or more "ATTRIB" entities.
End finally a "SEQEND" entity.
But the same result can also be achieved if you remove the attribute definitions from a block definition after inserting it.