Russello Posted October 17, 2017 Share Posted October 17, 2017 Hi lisp legends. When inserting a block with text, you need to go through "block editor" to edit it and if it has attributes, you can use attedit. Is there a way to simplify editing the text in an inserted block? like editing MTEXT or TEXT that you only need to double click it? Thanks a lot legends. Quote Link to comment Share on other sites More sharing options...
Aftertouch Posted October 17, 2017 Share Posted October 17, 2017 Very quick and dirty solution: (defun C:test ( / newtext elist) (setq newtext (getstring "New block text: ")) (setq elist (entget (car (nentsel)))) (setq elist (subst (cons 1 newtext) (assoc 1 elist) elist)) (entmod elist) (command "_RegenAll") ) Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 Thanks Aftertouch, it actually works like magic. But the thing is sometimes I am dealing with numbers (with decimal) and only digit will be replaced, that is why I was thinking it would be more convenient if there is a way to just double click it and edit. With your lisp routine, I need to retype all the digits in a number. example: change 103.23 to 103.22, if it can be double click, I can just simply delete 3, and replaced it with 2. With this routine, I need to retype all 103.22. Need some insights master Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 To simplify this thread the main concern is, instead of using attedit, does it have a way through lisp to edit the value by just double clicking it? maybe seems like converting the block into an editable mtext/text. Thanks Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 17, 2017 Share Posted October 17, 2017 My Batch Find/Replace Text should work with nested annotation. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted October 17, 2017 Share Posted October 17, 2017 CNTRL+DoubleClick will bypass the the attribute editor. Quote Link to comment Share on other sites More sharing options...
Russello Posted October 17, 2017 Author Share Posted October 17, 2017 OMG Master ronjonp that was awesome. No more lisp needed. What a legend. Thank you very much. Master Lee Mac, thank you. And I wanna say Thank you again because I learned a lot from your website Quote Link to comment Share on other sites More sharing options...
ronjonp Posted October 17, 2017 Share Posted October 17, 2017 OMG Master ronjonp that was awesome. No more lisp needed. What a legend. Thank you very much. Master Lee Mac, thank you. And I wanna say Thank you again because I learned a lot from your website Glad to help Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 18, 2017 Share Posted October 18, 2017 Ronjonp beat me to it Cntrl + pick, if you need to say change a certain text that is the same in multiple blocks just pick them and use FIND selection. Quote Link to comment Share on other sites More sharing options...
Russello Posted October 18, 2017 Author Share Posted October 18, 2017 Thanks Master BIGAL. But man, Ronjonp really nailed it. hahaha Thank you again guys 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.