Search the Community
Showing results for tags 'active'.
Found 1 result
Hello everyone, I've been learning AutoLisp for the last couple of weaks and started to write some simple codes to help me in my everyday-work. But today, while writting my program I faced some trouble trying to handle 2 dwg files open at the same time in AutoCAD. I'm trying to write a lisp to copy part of my original drawing, past that to a new drawing created automatically by the program and then execute some other commands at the second drawing. After all the commands I need my original file to be active again and the second one must close. Everytime the AutoCAD executes all the commands at the first drawing instead of doing that at the second. Is there a way to "pass" the lisp routine to the second file?? How can I change the active drawing and make the lisp program to change together? I'm stucked at this. If anyone have already passed trough this trouble, please help!