mike_ribeiro Posted August 6, 2024 Posted August 6, 2024 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 Quote
CyberAngel Posted August 6, 2024 Posted August 6, 2024 (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 August 6, 2024 by CyberAngel Quote
mike_ribeiro Posted August 6, 2024 Author Posted August 6, 2024 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. Quote
pkenewell Posted August 6, 2024 Posted August 6, 2024 (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 August 7, 2024 by pkenewell Quote
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.