Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Copy and paste as block

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
m.ugrinic
1034 Views, 3 Replies

Copy and paste as block

How to create lisp file for multiple commands sequentially?

 

eg. copy with base point 0,0 and paste as block with base point 10,10.

 

Thanks

 

3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: m.ugrinic


@m.ugrinic wrote:

How to create lisp file for multiple commands sequentially?

 

eg. copy with base point 0,0 and paste as block with base point 10,10.

 

Thanks

 


Hello m.ugrinic and welcome to the Autodesk Community!

 

(defun c:demo (/ ss)
   (if (and (princ "\nSelect objects to copy from 0,0 and paste as block at 10,10: ")
            (setq ss (ssget))
       )
      (command "_.copybase" '(0.0 0.0 0.0) ss "" "_.pasteblock" '(10.0 10.0 0.0))
      (prompt "\nYou did not select an object... ")
   )
   (princ)
)

 

Hope this helps,
Henrique

EESignature

Message 3 of 4
m.ugrinic
in reply to: hmsilva

Thank you.

Message 4 of 4
hmsilva
in reply to: m.ugrinic


@m.ugrinic wrote:

Thank you.


You're welcome, m.ugrinic
Glad I could help

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost