Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

CNTRL+DoubleClick will bypass the the attribute editor.

Posted

OMG Master ronjonp that was awesome. No more lisp needed. What a legend. Thank you very much. :thumbsup:

 

Master Lee Mac, thank you. And I wanna say Thank you again because I learned a lot from your website :)

Posted
OMG Master ronjonp that was awesome. No more lisp needed. What a legend. Thank you very much. :thumbsup:

 

Master Lee Mac, thank you. And I wanna say Thank you again because I learned a lot from your website :)

 

Glad to help :)

Posted

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.

Posted

Thanks Master BIGAL. But man, Ronjonp really nailed it. hahaha

 

Thank you again guys

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