<?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 Betreff: Macro lisp for consecutive commands in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552984#M93884</link>
    <description>&lt;P&gt;Well, I would recommend you to type VLIDE into command line and figure out yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But here is the spoiler with two other ways to achieve the same:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#FFFFFF"&gt;(if (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
  (if (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
    (LM:burstsel sst t)))


(if (and (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
	 (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
	 )
  (LM:burstsel sst t))


(and (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
     (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
     (LM:burstsel sst t)
     )&lt;/FONT&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 27 Jan 2019 21:26:46 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2019-01-27T21:26:46Z</dc:date>
    <item>
      <title>Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535257#M93866</link>
      <description>&lt;P&gt;Good day everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For my work i need to use al lot of repeating&amp;nbsp;actions in autocad (cleaning up&amp;nbsp;existing engineering-plans). So with searching and reading over the internet i have tried to write a script&amp;nbsp;with&amp;nbsp;a few&amp;nbsp;consecutive commands. Only one problem: my script doesn't work at all, and i don't know what am i doing wrong? It would be great if sonemone could help me out with this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;I shall describe what i'm would wish to become + what code i am using:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Scale my drawing x10 (between these coordinates)&lt;/STRONG&gt;&lt;BR /&gt;- scale;49130,-49590,0;387222,166237,0;10;&lt;BR /&gt;&lt;STRONG&gt;Freeze layers i dont need (with user input):&lt;/STRONG&gt;&lt;BR /&gt;-layer;freeze;select;\;;&lt;BR /&gt;&lt;STRONG&gt;Explode all blocks (between these coordinates):&lt;/STRONG&gt;&lt;BR /&gt;Burst;49130,-49590,0;387222,166237,0;&lt;BR /&gt;&lt;STRONG&gt;Delete all excisting dimensions and wipeouts:&lt;/STRONG&gt;&lt;BR /&gt;ssx;;entity;;dimension;;erase;p;;&lt;BR /&gt;ssx;;entity;;wipeout;;erase;p;;&lt;BR /&gt;&lt;STRONG&gt;Set all objects (between these coordinates) color by layer:&lt;/STRONG&gt;&lt;BR /&gt;-setbylayer;49130,-49590,0;387222,166237,0;settings;color;;&lt;BR /&gt;&lt;STRONG&gt;Change all hatches to a specific color:&lt;/STRONG&gt;&lt;BR /&gt;ssx;;entity;;hatch;;change;p;;properties;color;truecolor;170,170,170;;&lt;BR /&gt;&lt;STRONG&gt;Put the objects from layer "0" automaticaly on layer "background"&lt;/STRONG&gt;&lt;BR /&gt;ssx;;layer;;0;;change;p;;properties;layer;background;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;So i wrote this code to one .lsp file and appload this in autocad but it doesn't do anything?&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- scale;49130,-49590,0;387222,166237,0;10;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-layer;freeze;select;\;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Burst;49130,-49590,0;387222,166237,0;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ssx;;entity;;dimension;;erase;p;;&lt;BR /&gt;ssx;;entity;;wipeout;;erase;p;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-setbylayer;49130,-49590,0;387222,166237,0;settings;color;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ssx;;entity;;hatch;;change;p;;properties;color;truecolor;170,170,170;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ssx;;layer;;0;;change;p;;properties;layer;background;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your reactions!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Lars&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 22:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535257#M93866</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-19T22:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535290#M93867</link>
      <description>&lt;P&gt;script or SCR files, DO NOT ACCEPT USER INPUT&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jan 2019 23:11:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535290#M93867</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2019-01-19T23:11:24Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535324#M93868</link>
      <description>&lt;P&gt;"So i wrote this code to one .lsp file and appload this in autocad but it doesn't do anything?"&lt;/P&gt;
&lt;P&gt;This isn't lisp code. This syntax is like your topic said: macro. MenuMacro&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not lisp, not script, just menumacro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 00:15:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535324#M93868</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-01-20T00:15:19Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535596#M93869</link>
      <description>&lt;P&gt;Thanks for your reaction. Sorry i am totally new with this, and i found a lot on the internet, but not exactly what i was looking for.&amp;nbsp; I searched again and tried to use my programming as a menumacro, but it isn't working either (invalid command?). What would be your advice? I've read that there are more possibilities with lisp programming, but is it possible for wich i wish to become? Is there a good info website with examples for these consecutive commands i try to program? Or is it better with my menumacro&amp;nbsp; and a few modifications?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some research on the lisp code. I see that all commands need to be places between " "&lt;/P&gt;
&lt;P&gt;Maybe if someone can help to start me up with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 12:19:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535596#M93869</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-20T12:19:00Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535664#M93870</link>
      <description>&lt;P&gt;please upload at least 2 dwg sample.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a 3 dwg as the 1st dwg as have to be after.&lt;/P&gt;
&lt;P&gt;And if possible the"to erase" layer's&amp;nbsp; names list, that way will be easy to handle.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 14:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535664#M93870</guid>
      <dc:creator>devitg</dc:creator>
      <dc:date>2019-01-20T14:10:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535678#M93871</link>
      <description>&lt;P&gt;Impressive start Lars!!&lt;/P&gt;
&lt;P&gt;Macros are useful in some cases (especially&amp;nbsp;if you&amp;nbsp;have autocad&amp;nbsp;LT) but mostly very limited. Don't recommend&amp;nbsp;you to continue learning this way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may make your macro working for your ideal example drawing.&amp;nbsp;But let say what if you have no DIMENSIONs in the drawing. Are you able to skip that step? No, the marco&amp;nbsp;fails. And its very complicated to fix that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I would suggest to start learning LISP. It's&amp;nbsp;much more powerful than&amp;nbsp;macros.&lt;/P&gt;
&lt;P&gt;See the attachment&amp;nbsp;where I rewrote your macro to LISP. It's very basic (the first part until a line).&lt;/P&gt;
&lt;P&gt;Try to fight yourself with that for a while, then ask if you don't understand something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Read&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank"&gt;HERE&lt;/A&gt;&amp;nbsp;how to run lisp. If you don't make my lisp working, post some testing file due I didn't test my code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. There are a lot of free LISP libraries on web - one of those is Lee Mac's page&amp;nbsp;&lt;A href="http://www.lee-mac.com/index.html" target="_blank"&gt;HERE&lt;/A&gt;. There I used his BUSRT function which isn't just better than&amp;nbsp;Express Tool's version, but also easier to use&amp;nbsp;within LISP. (don't recommend you to try to learn from it, it's very advanced)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 14:29:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535678#M93871</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-20T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535867#M93872</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;Thank you so much BeekeeCZ! That's great!&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;This will give me a good start in understanding the lisp code. I will also check the link with the lisp librarie. Very helpfull! &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 color="#000000"&gt;The lisp is working perfectly, except for the truebook color. It says&amp;nbsp;this in my command line:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;New color [Truecolor/COlorbook] &amp;lt;BYLAYER&amp;gt;: _True Red,Green,Blue: 175.0000000000000,154.0000000000000&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#808080"&gt;&lt;EM&gt;Invalid color. Type three comma separated values from 0 to 255.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;However in your lisp code there are three separated values? Do you have an idea what could be the problem here?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;I also post my 2 dwg's before and after.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Lars&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 17:54:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535867#M93872</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-20T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535922#M93873</link>
      <description>&lt;P&gt;Sorry, wrong syntax. It should be "170,170,170"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, for you to learn. My confusion is from the syntax&amp;nbsp;of point coordinates. There are possible both ways and the first one is more the&amp;nbsp;LISP like, the second the ACAD's way. See the example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(&lt;FONT color="#FF0000"&gt;command &lt;/FONT&gt;"_line" &lt;FONT color="#FF00FF"&gt;"_non"&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;'(10 10)&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;"_non"&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;"20,20"&lt;/FONT&gt; "")&lt;/PRE&gt;
&lt;P&gt;And then the second very important thing to learn. When setting &lt;FONT color="#FF0000"&gt;point&lt;/FONT&gt; coordinates&amp;nbsp;&lt;FONT color="#FF0000"&gt;within&lt;/FONT&gt; the &lt;FONT color="#FF0000"&gt;command &lt;/FONT&gt;function (no matter if hardcoded of via variable) ALWAYS make sure&amp;nbsp;to&lt;FONT color="#FF00FF"&gt;&amp;nbsp;TURN OFF OSNAPs&lt;/FONT&gt;&amp;nbsp;someway! Either use "_none" temp OSNAP mode for each point or for more set OSMODE to 0... or OSNAPCOORD to 1... whatever fits you better.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 18:28:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8535922#M93873</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-20T18:28:52Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8536793#M93874</link>
      <description>&lt;P&gt;Thanks! That works perfect!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another question. Is it possible to do the same with with the solids? I tried to use the same line as yours for the hatches but that does'nt seem to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; (if (setq sst (acet-ss-ssget-filter ss '((0 . "HATCH"))))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.CHPROP" sst "" "_Color" "_True" '"170,170,170" "")) &lt;FONT color="#808080"&gt;=&amp;gt; this works &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; (if (setq sst (acet-ss-ssget-filter ss '((0 . "SOLID"))))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.CHPROP" sst "" "_Color" "_True" '"170,170,170" "")) &lt;FONT color="#808080"&gt;=&amp;gt; this does not?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#808080"&gt;Is it also possible to change also the type of these hatches to Ansi31 with a scale of 16? I have been searching in the library link, but can't find something similar to that.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#808080"&gt;Lars&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:13:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8536793#M93874</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-21T08:13:22Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8538538#M93875</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5963921"&gt;@larsr2866&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp; (if (setq sst (acet-ss-ssget-filter ss '((0 . "SOLID"))))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (command "_.CHPROP" sst "" "_Color" "_True" '"170,170,170" "")) &lt;FONT color="#808080"&gt;=&amp;gt; this does not?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really mean the SOLID entity,&amp;nbsp;and these entities were selected before to the ss selection set, then it works.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5963921"&gt;@larsr2866&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#808080"&gt;Is it also possible to change also the type of these hatches to Ansi31 with a scale of 16? &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the HELP, search for "hatch dxf", then check the "Developer" filter. You'll get&amp;nbsp;&lt;A href="http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-C6C71CED-CE0F-4184-82A5-07AD6241F15B" target="_blank"&gt;THIS&lt;/A&gt;&amp;nbsp;list of codes.&lt;/P&gt;
&lt;P&gt;There you can find that a hatch pattern is associated with code 2 and a scale with code 41. Then your filter would look like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'((0 . "HATCH") (2 . "ANSI31") (41 . 16)). &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It's case-sensitive.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BTW Lee has nice page about filters&amp;nbsp;&lt;A href="http://www.lee-mac.com/ssget.html" target="_blank"&gt;HERE&lt;/A&gt;. Usage within the ssget function is more common that my usage within acet function, which is not even a core AutoLISP function but function of ExpressTools.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 19:48:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8538538#M93875</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-21T19:48:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8541515#M93876</link>
      <description>&lt;P&gt;Thanks, the solid does also work now (think i made a mistake with my "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;just don't seem to&amp;nbsp;get the hatchedit good working.&lt;/P&gt;
&lt;P&gt;So i'm selecting all my hathes with "sst", and then put the command "hatchedit" for my selecion like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;(if (setq sst (acet-ss-ssget-filter ss '((0 . "HATCH"))))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt; (command "_.HATCHEDIT" sst "" (2 . "ANSI31") (41 . 16))&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there still something wrong with my "" or () maybe?&lt;/P&gt;
&lt;P&gt;Thanks!!&lt;/P&gt;
&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2019 20:38:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8541515#M93876</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-22T20:38:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8542836#M93877</link>
      <description>&lt;P&gt;It's not that simple. This list syntax '(() ()) as a filter you can apply just for (ssget) and that function.&lt;/P&gt;
&lt;P&gt;For properties specs of HATCHEDIT you need to follow the prompts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(command "_.HATCHEDIT" sst "" "_Properties" "ANSI31" 16 0)&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 23 Jan 2019 11:43:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8542836#M93877</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-23T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8543710#M93878</link>
      <description>Okay, thanks!  With this info, i will try to figure out some other things&lt;BR /&gt;for understanding all these codes and make myself a complete ‘drawing&lt;BR /&gt;cleanup’ macro. You’ve been a great help into getting started with this!&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Jan 2019 16:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8543710#M93878</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-23T16:17:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8544673#M93879</link>
      <description>&lt;P&gt;I'm sorry to bother you again but i answered too soon (before trying it)&lt;/P&gt;
&lt;P&gt;When i put this in my lsp file :&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;(if (setq sst (acet-ss-ssget-filter ss '((0 . "HATCH"))))&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;(command "_.HATCHEDIT" sst "" "_.Properties" "ANSI31" 16 0)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it says this:&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;Unknown command "ANSI31". Press F1 for help.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;16&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF9900"&gt;&lt;EM&gt;0&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you help with this last thing? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Lars&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 20:58:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8544673#M93879</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-23T20:58:56Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8545782#M93880</link>
      <description>&lt;P&gt;Ok, I see the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By calling (command "HATCHEDIT") we actually don't call the AutoCAD's&amp;nbsp;command directly but it's LISP equivalent. And sometimes these two are little different. And HATCHEDIT is the case. The difference is that while AutoCAD's version accepts multiple selection, the LISP's version does not (the same issue is with the EXPLODE command).&lt;/P&gt;
&lt;P&gt;Fortunately, nowadays we have a command - (initcommandversion) - which can specify the version of command&amp;nbsp;we would like to use.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW the behavior&amp;nbsp;of LISP version you can easily test inside the AutoCAD&amp;nbsp;by typing (command-s "_hatchedit")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(if (setq sst (acet-ss-ssget-filter ss '((0 . "HATCH"))))
  (progn
    (initcommandversion)
    (command "_.-HATCHEDIT" sst "" "_Properties" "ANSI31" 16 0)))&lt;/PRE&gt;
&lt;P&gt;Also note, that a dot prefix has only command name, not it's option "_Properties". It's because a command name CAN be redefined so we want to make sure that we call its original version by adding .prefix, whilst inner options cannot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 09:42:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8545782#M93880</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-24T09:42:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552819#M93881</link>
      <description>&lt;P&gt;Thanks, that works like a charm.&lt;/P&gt;
&lt;P&gt;I have been trying this weekend to form a complete personal drawing cleenup lisp with your tips, wich is going very well now. But i have one other issue changing my text between coordinates. I think&amp;nbsp;&lt;SPAN&gt;it may be beyond my ability to understand.&amp;nbsp;&lt;/SPAN&gt;I would like to change all text scale to 70pt. between certain coordinates + put all annotative scale off. I first have been trying to see the different steps in autocad by typing the following commands line in autocad but when i type 'textedit', its says 'select an annotative object'. Isn't there a way to change all existing text in autocad by the command line? Because this would help me to create my lisp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what i would think if textedit would work in my command line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt; (if (setq sst (ssget "_W" '(49130 -49590) '(387222 166237))) &lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(if (setq sst (acet-ss-ssget-filter ss '((0 . "TEXT"))))&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(progn&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(initcommandversion)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(command "_.-TEXTEDIT" sst "" "_Properties" "80")))&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#808080"&gt;Lars&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, 27 Jan 2019 19:25:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552819#M93881</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-27T19:25:15Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552845#M93882</link>
      <description>&lt;P&gt;For scaling use the _SCALETEXT command.&lt;/P&gt;
&lt;P&gt;For turning off the annotativity, use the CHANGE command.&lt;/P&gt;
&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jan 2019 19:58:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552845#M93882</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-27T19:58:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552894#M93883</link>
      <description>&lt;P&gt;Thanks, i will try to fix this!&lt;/P&gt;
&lt;P&gt;May i ask one more question to figure this out?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i add my settings off the coordinates to my burst command, autocad won't upload my lisp anymore. ("malformed list on input"). However i don't see the problem with this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt; (if (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))&amp;nbsp; &amp;nbsp; &lt;FONT color="#FF0000"&gt;&amp;lt;= i added this&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(if (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;(LM:burstsel sst t))&lt;/EM&gt;&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, 27 Jan 2019 20:22:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552894#M93883</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-27T20:22:54Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552984#M93884</link>
      <description>&lt;P&gt;Well, I would recommend you to type VLIDE into command line and figure out yourself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But here is the spoiler with two other ways to achieve the same:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#FFFFFF"&gt;(if (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
  (if (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
    (LM:burstsel sst t)))


(if (and (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
	 (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
	 )
  (LM:burstsel sst t))


(and (setq ss (ssget "_W" '(49130 -49590) '(387222 166237)))
     (setq sst (acet-ss-ssget-filter ss '((0 . "INSERT"))))
     (LM:burstsel sst t)
     )&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Jan 2019 21:26:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8552984#M93884</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-01-27T21:26:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Macro lisp for consecutive commands</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8561752#M93885</link>
      <description>Thanks for your help. I fixed it all! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  ##- Please type your reply above&lt;BR /&gt;this line -##</description>
      <pubDate>Wed, 30 Jan 2019 17:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/macro-lisp-for-consecutive-commands/m-p/8561752#M93885</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-01-30T17:48:45Z</dc:date>
    </item>
  </channel>
</rss>

