[i]want to regen all open documents.[/i] therefor i use vlisp to create a list containing all open documents as objects. the list can look something like this: (#<VLA-OBJECT IAcadDocument 0112392c> #<VLA-OBJECT IAcadDocument 01103f8c> #<VLA-OBJECT IAcadDocument 01130abc>) to regen all those documents i use this code: (setq iLength (length lListOfDocuments) iCount 0) (command "_regen" "") (repeat iLength (vla-put-activedocument (vlax-get-acad-object) (nth iCount lListOfDocuments)) (command "_regen" "") (setq iCount (1+ iCount)) ) but it won't work. :( does someone have a solution for this problem?