Jump to content

Underlining a single line text


Recommended Posts

There is some lisps out there underline and UPPER & lowercase just pick text.

 

; convert text to uppercase
(defun c:ucase (/ t2 tv tvu tv1 t1)
(setvar "cmdecho" 0)
  (setq t2 (entsel "\nPick text:"))
  (setq t2 ( car t2))
  (setq t2 (entget t2))
  (setq tv (assoc 1 t2))
  (setq tvu (cdr tv))
  (setq tvu (strcase tvu))
  (setq tv1 (cons (car tv) tvu))
  (setq t1 (subst tv1 tv t2))
  (entmod t1)
(setvar "cmdecho" 1)
)
(c:ucase)

Link to comment
Share on other sites

Hi BIGAL, your method seems to be much complicated. Am a newbie, though i will try it out. Danallis method was simpler and really worked for me.

Thank you fr your help. I appreciate very much

Link to comment
Share on other sites

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