Jump to content

Paper and Modelspace


Guest athabe

Recommended Posts

Guest athabe

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 :)

Link to comment
Share on other sites

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)
)

Link to comment
Share on other sites

Guest athabe

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.8)

 

Athabe Ana

Autocad and Microstaion User

Link to comment
Share on other sites

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.8)

 

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".

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...