Jump to content

Recommended Posts

Posted

Someone can give me a tip how to write a lisp routine that cut with base point the selected objets and then paste as block asking for insertion point ?

 

Thanks in advance

Posted (edited)

You can use the keys Ctrl-Shift-V to Paste as Block. Don't re-invent the wheel.

 

Edit: There is an explicit command PASTEBLOCK as well.

Edited by CyberAngel
Posted

Thanks.

 

i'm aware of this commands.

 

I just wanted to have the completed task in one command to improve the time spent in several equal tasks.

Posted (edited)
On 8/6/2024 at 9:41 AM, mike_ribeiro said:

Thanks.

 

i'm aware of this commands.

 

I just wanted to have the completed task in one command to improve the time spent in several equal tasks.

@mike_ribeiro

There are the commands COPYBASE and CUTBASE built in to AutoCAD to get the selection point. No LISP needed, but if you must:

(defun c:cutpaste ()
   (command "._cutbase")
   (while (= (logand (getvar "cmdactive") 1) 1)
		(command pause)
	)
   (command "._pasteblock")
)

Although - how is this different from the MOVE command? OK - so I guess it makes an anonymous block immediately.

Edited by pkenewell

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