×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to explode text into lines and arcs?

How to explode text into lines and arcs?

How to explode text into lines and arcs?

(OP)
HI there to all the experts here. I have this problem in auto cad 2002. I need to explode an mtext to lines and arcs coz i need this in machining an embossed text in a product. The problem is i can't explode an mtext. Pls help me. I need this badly. Thanks in advance.

RE: How to explode text into lines and arcs?

If you have Express Tools try "Explode Text".

Or try this lisp:

; TIP #637 XTEXT.LSP By Ashoke Bhattacharya CADalyst Magazine March 1991
; ------------------------------------------------------------------------
; DESCRIPTION:  Explodes a line of text into its component letters.
; ------------------------------------------------------------------------
(princ "\nStart command with XTEXT.")(graphscr)(princ)
; ------------------------------------------------------------------------
(defun C:XTEXT ()
  (setvar "CMDECHO" 0)
  (setq A1 (entget (car (entsel
    "\nSelect text: "))))
  (setq A2 (cdr (assoc -1 A1)))
  (command "ERASE" A2 "")
  (setq A (cdr (assoc 1 A1)))
  (setq SP (cdr (assoc 10 A1)))
  (setq HT (cdr (assoc 40 A1)))
  (setq B (strlen A))
  (setq B1 1)
  (repeat B
    (setq C (substr A B1 1))
    (command "TEXT" SP HT 0 C)
    (setq B1 (+ B1 1))
    (setq HT1 HT)
    (if (= 108 (ascii C))
      (setq HT1 (/ HT 2)))
    (if (= 105 (ascii C))
      (setq HT1 (/ HT 3)))
    (if (= 73 (ascii C))
      (setq HT1 (/ HT 1.5)))
    (setq SP (polar SP 0 HT1))
  )
(redraw)
(princ)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources