Guest athabe Posted October 5, 2011 Share Posted October 5, 2011 I'm looking for a lisp routine to these steps: * Move from Model to paper space * Copy from Model to paper space * Move from Paper to Model space * Copy from Paper to Model space All Regards to The Lisp genius Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 5, 2011 Share Posted October 5, 2011 Won't the CHSPACE command take care of two out of the four? Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 5, 2011 Share Posted October 5, 2011 Won't the CHSPACE command take care of two out of the four? Agreed and this should take care of the other two: (defun c:CHSpaceCopy (/ ss2 ss i) (vl-load-com) (if (setq ss2 (ssadd) ss (ssget "_:L") ) (progn (repeat (setq i (sslength ss)) (ssadd (vlax-vla-object->ename (vla-copy (vlax-ename->vla-object (ssname ss (setq i (1- i)))))) ss2 ) ) (vl-cmdf "_.chspace" ss2 "") ) ) (princ) ) Quote Link to comment Share on other sites More sharing options...
Guest athabe Posted October 5, 2011 Share Posted October 5, 2011 It works Thanks;) Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 5, 2011 Share Posted October 5, 2011 It works Thanks;) You're welcome. Quote Link to comment Share on other sites More sharing options...
SLW210 Posted October 6, 2011 Share Posted October 6, 2011 Relocated to proper forum. Quote Link to comment Share on other sites More sharing options...
alanjt Posted October 6, 2011 Share Posted October 6, 2011 LoL, you know, I had to dig the thread back up and use the code I posted late yesterday. Quote Link to comment Share on other sites More sharing options...
Guest athabe Posted October 6, 2011 Share Posted October 6, 2011 That was a good code, my thanks to you and to all who want to help. I just joint the site and I had a thought that when the question is posted it will filter it self automatically to the correct (designated) department. Any how the whole idea is to share knowledge and help each other. I wish a good day for all. Athabe Ana Autocad and Microstaion User Quote Link to comment Share on other sites More sharing options...
SLW210 Posted October 6, 2011 Share Posted October 6, 2011 That was a good code, my thanks to you and to all who want to help. I just joint the site and I had a thought that when the question is posted it will filter it self automatically to the correct (designated) department. Any how the whole idea is to share knowledge and help each other. I wish a good day for all. Athabe Ana Autocad and Microstaion User You should have read NEW MEMBER INFORMATION and HOW DO I MAKE A POST? I have never seen a forum that "will filter it self automatically to the correct (designated) department". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.