<?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: Script or Lisp to filter specific Text in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084701#M83058</link>
    <description>&lt;PRE&gt;(sssetfirst nil (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))))
_move
0,0
100,0&lt;/PRE&gt;
&lt;P&gt;But I wouldn't do that. Why to combine script and lisp if you can use just a lisp?&lt;/P&gt;
&lt;PRE&gt;(defun c:MoveMyTextRight () (command "_move" (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))) "" "_non" '(0 0 0) "_non" '(100 0 0)) (princ))&lt;/PRE&gt;
&lt;P&gt;How would you run the command? By name or using a toolpalette?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2019 10:26:31 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2019-10-14T10:26:31Z</dc:date>
    <item>
      <title>Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084549#M83055</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;my task is to make a Script or Lisp, so we can just run this to filter all specific text´s (like "KS" "WT" "GS" "WM" "KL") out, move them 100 right, delete the rest of the text´s and move the filtered text´s 100 back. Problem is that I am an absolute noob with scripts and Lisps because i have never worked with them before. If it´s possible it sohuld be done in a way that we didnt have to do anything eles than loading the script.&lt;BR /&gt;&lt;BR /&gt;I would apriciate your help in German or English.&lt;BR /&gt;&lt;BR /&gt;-Simon&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:03:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084549#M83055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T09:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084583#M83056</link>
      <description>&lt;P&gt;This code selects all those texts. What would you do with an active selection next, is up to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(sssetfirst nil (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))))&lt;/PRE&gt;
&lt;P&gt;Add this as a macro to your toolpalette.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 09:21:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084583#M83056</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-10-14T09:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084675#M83057</link>
      <description>&lt;P&gt;Thx BeeKeeCZ for your reply,&lt;BR /&gt;before i had it like this in a .scr:&lt;/P&gt;&lt;P&gt;_move&lt;BR /&gt;all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0,0&lt;BR /&gt;100,0&lt;/P&gt;&lt;P&gt;thats to just move them 100 right ,&lt;BR /&gt;so i cant just copy your code infornt of it and use it like i tought it might work, can you explane my why&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:06:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084675#M83057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084701#M83058</link>
      <description>&lt;PRE&gt;(sssetfirst nil (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))))
_move
0,0
100,0&lt;/PRE&gt;
&lt;P&gt;But I wouldn't do that. Why to combine script and lisp if you can use just a lisp?&lt;/P&gt;
&lt;PRE&gt;(defun c:MoveMyTextRight () (command "_move" (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))) "" "_non" '(0 0 0) "_non" '(100 0 0)) (princ))&lt;/PRE&gt;
&lt;P&gt;How would you run the command? By name or using a toolpalette?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:26:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084701#M83058</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-10-14T10:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084740#M83059</link>
      <description>&lt;P&gt;We would like to use them with drag and drop them into the drawings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i copy your code into a lisp save it and drop it on the drawing exectly nothing happens. maybe i´m making a mistake?, but idk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx for your patience ^^"&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 10:53:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084740#M83059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T10:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084752#M83060</link>
      <description>&lt;P&gt;It's not the way that people usually use, but possible... use just this part, save it as *.lsp and drag and drop it into dwg.&lt;/P&gt;
&lt;PRE&gt;(command "_move" (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))) "" "_non" '(0 0 0) "_non" '(100 0 0))
(princ)&lt;/PRE&gt;
&lt;P&gt;Or read&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp; how people usually use lisps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084752#M83060</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-10-14T11:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084757#M83061</link>
      <description>&lt;P&gt;okey like that it works perfectly fine, now how about deleting the rest texts(is this posible without giving a "window" to mark them? and moving back the ones we moved out&amp;nbsp; ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:08:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084757#M83061</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084761#M83062</link>
      <description>Why move the text, then move it back? If you reverse the filter and select all text not matching you can just delete them.</description>
      <pubDate>Mon, 14 Oct 2019 11:16:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084761#M83062</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-14T11:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084769#M83063</link>
      <description>&lt;P&gt;it was thought as control, if we see yeah ther are 20 moved we know that everything is where it should be without having to watch directly over it. the rest of the texts is variable so i cant tell only from the deleted ones&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 11:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9084769#M83063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-14T11:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9085009#M83064</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;it was thought as control, if we see yeah ther are 20 moved we know that everything is where it should be without having to watch directly over it. the rest of the texts is variable so i cant tell only from the deleted ones&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This does that, but it happens so fast that you probably won't really see the ones moved over and then moved back.&lt;/P&gt;
&lt;PRE&gt;(command&lt;BR /&gt;  "_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL")))) "" "36,0" ""&lt;BR /&gt;  "_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""&lt;BR /&gt;  "_move" ss "" "-36,0" ""&lt;BR /&gt;)
&lt;/PRE&gt;
&lt;P&gt;I tried putting a delay in, in a couple of places, but it seemed to delay the whole thing without delaying between operations.&amp;nbsp; But you could see which ones were kept afterward, easily enough:&lt;/P&gt;
&lt;PRE&gt;(command
  "_.move" (setq ss (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL")))) "" "36,0" ""
  "_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss ""
  "_move" ss "" "-36,0" ""
)
&lt;STRONG&gt;(sssetfirst nil ss)&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Which effectively could be done more simply, without the Moving since you don't really see that happen:&lt;/P&gt;
&lt;PRE&gt;(setq ss (ssget "_X" '((0 . "*TEXT") (1 . "KS,WT,GS,WM,KL"))))
(command  "_.erase" (ssget "_X" '((0 . "*TEXT"))) "_remove" ss "")
(sssetfirst nil ss)&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 13:03:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9085009#M83064</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-10-14T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9085710#M83065</link>
      <description>&lt;P&gt;You could also just&lt;/P&gt;&lt;PRE&gt;(command  "_.erase" (ssget "_X" '((0 . "*TEXT") (-4 . "&amp;lt;NOT") (1 . "KS,WT,GS,WM,KL") (-4 .  "NOT&amp;gt;"))) "")&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:04:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9085710#M83065</guid>
      <dc:creator>dlanorh</dc:creator>
      <dc:date>2019-10-14T18:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script or Lisp to filter specific Text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9086250#M83066</link>
      <description>&lt;P&gt;Just for future drag and dropping, you may have a defun that you want to run more than once so how to run 1st time then again ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its easy if you add the defun name in full at the end of the code it will run. I do most of mine this way. NOTE C: must be included if defun name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(alert "Type &lt;SPAN style="display: inline !important; float: none; background-color: #f5f5f5; color: #3e3e3e; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.7142; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px;"&gt;MoveMyTextRight&lt;/SPAN&gt; to run again")
(c:&lt;SPAN style="display: inline !important; float: none; background-color: #f5f5f5; color: #3e3e3e; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.7142; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px;"&gt;MoveMyTextRight&lt;/SPAN&gt;)&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 00:00:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/script-or-lisp-to-filter-specific-text/m-p/9086250#M83066</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-10-15T00:00:53Z</dc:date>
    </item>
  </channel>
</rss>

