
Discussion forum
![]() |
| ![]() |

Please abide by the rules of this forum.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
The information that you provide in this form will make up your forum profile which can be viewed by other forum members. Your email address will only be visible by forum admin and moderators and will be used to send you Forum Notifications. To cancel your account, use the page Opt-out or contact webmaster@cadforum.cz. |
%%U |
Post Reply ![]() |
Author | |
marie_b ![]() Newbie ![]() Joined: 20.Apr.2010 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() Posted: 05.Aug.2020 at 22:07 |
I have a file that I can only use Single Line text in. Some things need to be underlined so I use the control U command. This adds %%U to the contents of the text. My problem is this file is imported into Corel Draw and the %%U causes issues. It will only work ok with %%u. Is there a way to change this command so it adds a little u instead of a capital U? Or is there any way to find/replace the U with a u?
Thanks!
|
|
![]() |
|
philippe JOSEPH ![]() Senior Member ![]() Joined: 14.Mar.2011 Location: France Using: AutoCAD Mechanical 2017 Status: Offline Points: 1221 |
![]() ![]() ![]() ![]() ![]() |
Helo marie_b, try the command FIND or _FIND. It works with a selection of entities or with all the drawing.
|
|
![]() |
|
marie_b ![]() Newbie ![]() Joined: 20.Apr.2010 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the reply.
That does not work because it is a code and not actually recognized as text.
|
|
![]() |
|
Kent Cooper ![]() Senior Member ![]() Joined: 12.Mar.2013 Location: United States Using: AutoCAD2019 Status: Offline Points: 538 |
![]() ![]() ![]() ![]() ![]() |
Try this:
(defun C:Utou (/ ss n txt str) (if (setq ss (ssget "_X" '((1 . "*%%U*")))) (repeat (setq n (sslength ss)); then (setq txt (ssname ss (setq n (1- n))) str (getpropertyvalue txt "TextString") ); setq (while (wcmatch str "*%%U*") (setq str (vl-string-subst "%%u" "%%U" str)) ); while (setpropertyvalue txt "TextString" str) ); repeat ); if (princ) ); defun Minimally tested. [Curiously under these circumstances, but typically for defined commands, the command name is not case-sensitive.]
|
|
![]() |
|
marie_b ![]() Newbie ![]() Joined: 20.Apr.2010 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
I don't know much about programming. What exactly do I do with it?
|
|
![]() |
|
marie_b ![]() Newbie ![]() Joined: 20.Apr.2010 Location: United States Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Never mind, I got it figured out. And it works!
Thank you from the whole support team!
![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,047 seconds.