<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change text in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045538#M64996</link>
    <description>Unfortunately it doesn't work. I've tried this before, but I didn't succeed. As I explained in the previous post in the image.</description>
    <pubDate>Sun, 31 Jan 2021 10:55:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-31T10:55:22Z</dc:date>
    <item>
      <title>Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10041027#M64980</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should modify ct.lsp so that it writes a text replacement directly to the command line.&amp;nbsp;Something like trc.lsp.&amp;nbsp;Only this (txtfind "Ĺ" "Š") should be passed directly to the function when running lisp. So automatic text replacement should be done.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 08:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10041027#M64980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-29T08:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042100#M64981</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know you have good knowledge of writting autolisp programs, so why don't you try to write it yourself and then ask for help if really needed. This is not complex stuff to do.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 15:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042100#M64981</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-01-29T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042559#M64982</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You should modify ct.lsp so that it writes a text replacement directly to the command line.&amp;nbsp;Something like trc.lsp.&amp;nbsp;Only this (txtfind "Ĺ" "Š") should be passed directly to the function when running lisp. So automatic text replacement should be done.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Explain yourself&amp;nbsp;@Anonymous&amp;nbsp;, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You want to be prompted for "Enter the old text: " and&amp;nbsp;"Enter the new text: " on the command prompt similar to the other lisp.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:txtfind ( / OldTxt NewTxt)	
	(if (and
	      (setq OldTxt (getstring T "\nEnter the old text: "))
	      (setq NewTxt (getstring T "\nEnter the new text: "))
	      (vl-every '(lambda (v)
			   (/= v "")) (list OldTxt NewTxt))
	      )
	  (txtfind OldTxt NewTxt)
	  )
  )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;is this all there is to your request?&amp;nbsp;Are you wanting something else entirely?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 18:05:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042559#M64982</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-29T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042963#M64983</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I've been trying to do this, but I'm failing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 20:47:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042963#M64983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-29T20:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042967#M64984</link>
      <description>&lt;P&gt;&lt;SPAN&gt;That's ok, but it should make a replacement automatically. No need to type in the command line.&amp;nbsp;So, by running the script, the text should change automatically.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 20:50:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10042967#M64984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-29T20:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043045#M64985</link>
      <description>&lt;P&gt;What you need to do is import text as it is, and after some text entity is creates instantly run a script that will test and make changes for characters to be changed. I know you are reading your GML file. So when element is created run a script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(defun mytest ()
(txtfind "Ĺ " "Š")
(txtfind "Ĺˇ" "š")
(txtfind "Ä" "Đ")
(txtfind "Ä‘" "đ")
(txtfind "ÄŚ" "Č")
(txtfind "ÄŤ" "č")
(txtfind "Ä†" "Ć")
(txtfind "Ä‡" "Ć")
(txtfind "Ĺ˝" "Ž")
(txtfind "Ĺľ" "ž")
)

this should be changed to work on last created test entity. And to do that you don't need complex script as one you have attached.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 21:34:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043045#M64985</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-01-29T21:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043243#M64986</link>
      <description>&lt;P&gt;It is possible to do a reactor using a 1st character as a trigger to your change text, so if we looked at the simple newtext oldtext we would type something like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"1NEWTEXT-OLDTEXT" on command line and it would ask select text. What happens is you will get an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No command&amp;nbsp;1NEWTEXT-OLDTEXT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So trap the error check that its a 1 in front pull apprt the two strings then ask for pick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this for Fillet Circle F100 C345 etc&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the code if you want to have&amp;nbsp; ago at doing something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;; Fillet rad uses Frad eg f100 pulls the 100 from the F and then runs fillet
; because its a error check use 123-45 where - is decimal point = 123.45
; BY Alan H 2019
; Thanks to Lee-mac for solving some problems

(   (lambda nil
        (vl-load-com)
        (foreach obj (cdar (vlr-reactors :vlr-command-reactor))
            (if (= "fillet-reactor" (vlr-data obj))
                (vlr-remove obj)
            )
        )
        (vlr-command-reactor "fillet-reactor" '((:vlr-unknowncommand . fillet-reactor-callback)))
    )
)

(defun filletrad ( / rad)
(setq rad (distof (substr com 2) 2))
            (if (&amp;lt;= 0.0 rad)
              (progn        
              (setvar 'filletrad rad)
              (vla-sendcommand fillet-reactor-acdoc "_.fillet ")
              )
              ) 
)

(defun fillet-reactor-callback ( obj com )
(setq com (vl-string-translate "-" "." (strcase (car com))))
    (cond   
        (   (and
            (wcmatch com "~*[~F.0-9]*")
            (wcmatch com "F*")
            (wcmatch com "~F*F*")
            (wcmatch com "~*.*.*")
            ) ; and
            (filletrad) 
         ) 
    ) ; master cond
) ; defun

(or fillet-reactor-acdoc
    (setq fillet-reactor-acdoc (vla-get-activedocument (vlax-get-acad-object)))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 23:51:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043243#M64986</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2021-01-29T23:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043469#M64987</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;That's ok, but it should make a replacement automatically. No need to type in the command line.&amp;nbsp;So, by running the script, the text should change automatically.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm guessing you meant not typing the old and new pattern on the command prompt.&lt;/P&gt;
&lt;P&gt;All calls to (txtfind &lt;EM&gt;ol nt&lt;/EM&gt;) At the bottom end of&amp;nbsp; trc.lsp file will run when the file is loaded, now if you want to run the find and replace thing again on an already opened, you can either load the lisp again or add the code below at the end of the file, and type&amp;nbsp;&lt;STRONG&gt;txtfind&amp;nbsp;&lt;/STRONG&gt;at the command prompt.&lt;/P&gt;
&lt;P&gt;command:&amp;nbsp;txtfind &amp;lt;-- [ &lt;EM&gt;"&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;the text should change automatically."&lt;/EM&gt; ]&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:txtfind ()
  (foreach itm '(("Ä¹Â&amp;nbsp;" "Å&amp;nbsp;")
		 ("Ä¹Ë‡" "Å¡")
		 ("Ã„" "Ä&amp;#144;")
		 ("Ã„â€˜" "Ä‘")
		 ("Ã„Åš" "ÄŒ")
		 ("Ã„Å¤" "Ä&amp;#141;")
		 ("Ã„â€&amp;nbsp;" "Ä†")
		 ("Ã„â€¡" "Ä†")
		 ("Ä¹Ë&amp;#157;" "Å½")
		 ("Ä¹Ä¾" "Å¾")
		)
    (txtfind (Car itm) (cadr itm))
  )(princ)
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;or as per&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556"&gt;@hak_vz&lt;/a&gt;&amp;nbsp; suggestion use an external source file for the pattern. That way you can add new patterns to find and replace&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:txtfind ( / f opf a)
	(if (setq f (findfile "patterns.txt")) ;&amp;lt;-- you can hard code the location here
	  (progn
	    (setq opf (open f "r"))
	    (while (setq a (read-line opf))
		(eval (read a))
	      )
	    (close opf)
	    )
	  )
  (princ)
  )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;and this as "patterns.txt" [ save this file within reach of SFSP or change the path on the code&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(txtfind "Ä¹Â&amp;nbsp;" "Å&amp;nbsp;")
(txtfind "Ä¹Ë‡" "Å¡")
(txtfind "Ã„" "Ä&amp;#144;")
(txtfind "Ã„â€˜" "Ä‘")
(txtfind "Ã„Åš" "ÄŒ")
(txtfind "Ã„Å¤" "Ä&amp;#141;")
(txtfind "Ã„â€&amp;nbsp;" "Ä†")
(txtfind "Ã„â€¡" "Ä†")
(txtfind "Ä¹Ë&amp;#157;" "Å½")
(txtfind "Ä¹Ä¾" "Å¾")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Even better is&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp; suggestion of using reactors, no typing of command, but its always lurking on the background. To get into that discussion would mean to open a can of worms and i'm not doing that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 03:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10043469#M64987</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-30T03:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044819#M64988</link>
      <description>&lt;P&gt;The problem occurs when you try to use lispa (automatically) to change letters that are not letters of the English alphabet (diacritical marks). So, by typing in the command line (txtfind "Ĺ" "Š") the thing works, but automatically from lisp it doesn't work.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2021 21:38:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044819#M64988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-30T21:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044821#M64989</link>
      <description>Thanks, but this seems very complicated to me. Although a good idea.</description>
      <pubDate>Sat, 30 Jan 2021 21:39:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044821#M64989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-30T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044826#M64990</link>
      <description>The same problem occurs as I explained in a previous post.</description>
      <pubDate>Sat, 30 Jan 2021 21:40:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10044826#M64990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-30T21:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045204#M64991</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;The problem occurs when you try to use lispa (automatically) to change letters that are not letters of the English alphabet (diacritical marks). So, by &lt;FONT color="#0000FF"&gt;typing in the command line (txtfind "Ĺ" "Š") the thing works&lt;/FONT&gt;, but &lt;FONT color="#0000FF"&gt;automatically from lisp it doesn't work.&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;That doesn't sound right at all. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3" color="#0000FF"&gt;&lt;FONT color="#000000"&gt;How can this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(txtfind "Ĺ" "Š") &lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;be different from this&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="lisp"&gt;(defun c:dothis ()(txtfind "Ĺ " "Š"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Post a sample drawing showing at least two of the targeted pattern, and we will see what's the deal.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 04:29:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045204#M64991</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-31T04:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045397#M64992</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The problem occurs when you try to use lispa (automatically) to change letters that are not letters of the English alphabet (diacritical marks). So, by typing in the command line (txtfind "Ĺ" "Š") the thing works, but automatically from lisp it doesn't work.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;@Anonymous&amp;nbsp; What is the difference ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:func nil (func))
(defun func nil (princ "\nFunc do some work")(princ))
(func)
(c:func)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With defun we define a function. if we add c: in front of its name then this function becomes autocad command.&lt;/P&gt;&lt;P&gt;Sorry, but there is a lots of stuff to learn (and this are the basics) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(setq txt "šašaŠAŠA PAPA MAŠA šaŠA")
(while (&amp;gt; (vl-string-position (ASCII "Š") txt) 0)(setq txt (vl-string-subst "*" "Š" txt)))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 08:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045397#M64992</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-01-31T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045470#M64993</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Here I am sending you the whole procedure shown in the image.&amp;nbsp;I don't know what I'm doing wrong.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 09:48:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045470#M64993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045474#M64994</link>
      <description>It's all clear to me, but it doesn't seem to be a problem.</description>
      <pubDate>Sun, 31 Jan 2021 09:51:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045474#M64994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045513#M64995</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is as simple as putting (textfind ) functions at the end of your function that loads text form gml, but not inside a loop but before function end. It will create entites you want and then make replacements to whole drawing. There will not be a need to run each function separately&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(
.....
(
loop to read from gml file and create text entities 

)
......
(txtfind "Ĺ " "Š")
(txtfind "Ĺˇ" "š")
(txtfind "Ä" "Đ")
(txtfind "Ä‘" "đ")
(txtfind "ÄŚ" "Č")
(txtfind "ÄŤ" "č")
(txtfind "Ä†" "Ć")
(txtfind "Ä‡" "Ć")
(txtfind "Ĺ˝" "Ž")
(txtfind "Ĺľ" "ž")
(princ)
)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 31 Jan 2021 10:23:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045513#M64995</guid>
      <dc:creator>hak_vz</dc:creator>
      <dc:date>2021-01-31T10:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045538#M64996</link>
      <description>Unfortunately it doesn't work. I've tried this before, but I didn't succeed. As I explained in the previous post in the image.</description>
      <pubDate>Sun, 31 Jan 2021 10:55:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045538#M64996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T10:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045585#M64997</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Here I am sending you the whole procedure shown in the image.&amp;nbsp;I don't know what I'm doing wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Is it too much to ask for a &lt;STRONG&gt;drawing file&lt;/STRONG&gt;? thing is, we believe you when you say it doesnt work and you dont know what you are doing wrong. But we need to see it for ourselves.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Because it does work when running the code with the same scenarion on my workstaion. maybe there's more to this and we are not seeing it.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 11:43:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045585#M64997</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-31T11:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045644#M64998</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In the attachment I'm sending you drawing file.&amp;nbsp;If you succeed please describe the procedure to me. I'm trying the way I described on image.png.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 12:40:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045644#M64998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-31T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045743#M64999</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;In the attachment I'm sending you drawing file.&amp;nbsp;If you succeed please describe the procedure to me. I'm trying the way I described on image.png.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You are right Daniel.&amp;nbsp;&lt;/FONT&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Short of writing a code that reads unicode and back. the best bet is to use toolpalette.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;On the attached file "patterns.txt", copy the contents and pasted tool palette "command string"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;You can do the whole thing [&amp;nbsp;toolpalette.png ]&amp;nbsp; or one per. [&amp;nbsp;single.png]&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: If you are having issues with the attached text file, paste the patterns directly on the tool paltette.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;HTH&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 14:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/change-text/m-p/10045743#M64999</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-01-31T14:31:58Z</dc:date>
    </item>
  </channel>
</rss>

