Jump to content

Recommended Posts

Posted
Hedgehog - Yeah, does same thing in any drawing. FYI I'm importing text from a PDF that places the formatting codes in there. :(

 

CAB - Your STRIPPER does the same thing.?! :?

 

Which leads me to believe it's an installation problem. This IS a new install of AutoCAD2008 and I DID do a registry clean the other day, so......

I'll do an uninstall and reinstall of AutoCAD and see what happens.

 

Thanks for trying to help. I'll let you know what happens.:roll:

 

Gary

Try this revised test routine after you load my lisp.

(defun c:stest(/ esel obj text result)
 (vl-load-com)
 (setq esel (car (entsel "\nSelect Text : ")))
 (setq obj (vlax-ename->vla-object esel)
       text (vla-get-textstring obj))
 
 (setq result (strip_text text "*"))
 )

Posted

As I suspected, a reinstall of AutoCAD did the trick. StripMtext.lsp works as advertized.

 

CAB - I'll mess around with your routine later when I have a bit more time and let you know what happens. Private mail if you prefer.

 

Thanks both of you for caring so much,:D

Gary

  • 3 years later...
Posted

Je i madh. Faleminderit.

I usually just explode the mtext. Use match properties to the format I want then recombine the text entities.

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