Ok you can find all the blocks via this as long as they always start with {
- (setq ss (ssget "x" (list( cons 0 "Insert")(cons 2 "{*"))))
I would read all the attributes using above swap the existing block onto a frozen layer, then insert the correct block same spot with the attribute values, when happy its all ok you could delete the old block rather than freeze it.
Need to replace in code above in a repeat (ssname SS1 x) where is x is a counter id from how many blocks have been found.
Bit busy right now some one else may jump in with a solution. |