<?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: lisp to isolate layers using wildcards in the name... in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6067420#M134129</link>
    <description>&lt;P&gt;Thank you for your efforts. Routine working good!&lt;BR /&gt;Now i need an "emulation" of LAYUNISO function. After invoking&amp;nbsp;"demo" function for example regular LAYUNISO function can not return previous position...&lt;BR /&gt;I think on this step need to involve layerstate-save and layerstate-restore functions..&lt;BR /&gt;How can I do it?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 06:26:21 GMT</pubDate>
    <dc:creator>danglar</dc:creator>
    <dc:date>2016-03-03T06:26:21Z</dc:date>
    <item>
      <title>lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6065074#M134126</link>
      <description>&lt;P&gt;I find very useful routine to delete layers using laydel with wildcards in the name here:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-layers-using-laydel-with-wildcards-in-the-name/m-p/5515539/highlight/false#M330149" target="_blank"&gt;http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-layers-using-laydel-with-wildcards-in-the-name/m-p/5515539/highlight/false#M330149&lt;/A&gt;&lt;BR /&gt;my question is:&lt;BR /&gt;Is it possible to modify some of these programs in this topic in order to isolate layers in a same way?&lt;BR /&gt;I tried to solve this issue but I have a problem: Layiso command used layers picked by user and I don't know how to take&amp;nbsp;these layers names as initial values&lt;BR /&gt;Any help will by very appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 06:55:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6065074#M134126</guid>
      <dc:creator>danglar</dc:creator>
      <dc:date>2016-03-02T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6065870#M134127</link>
      <description>&lt;P&gt;That's a lot easier, since isolating Layers is just a function of having them On and all other Off, both of which [unlike deleting them] are achievable within the Layer command's regular options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq laynames (getstring "\nEnter Layer Name(s) to isolate [wild-cards can be used]: "))&lt;/P&gt;
&lt;P&gt;(command "_.layer" "_off" "*" "_yes" "_on" laynames "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, if you will always want a group of Layer names with the same &lt;EM&gt;beginning&lt;/EM&gt;, and to wild-card the rest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(setq laybase (getstring "\nEnter start&amp;nbsp;of Layer Names to isolate&amp;nbsp;all that begin that way: "))&lt;/P&gt;
&lt;P&gt;(command "_.layer" "_off" "*" "_yes" "_on" (strcat laybase "*") "")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also want to include something to set the &lt;EM&gt;current&lt;/EM&gt; Layer to one of those that will be on, which makes it a little more complicated but is certainly doable. &amp;nbsp;Or you may choose to answer "_no" to the question of whether to turn the current Layer off.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:59:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6065870#M134127</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-03-02T14:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6066027#M134128</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@apelbaum2014 wrote:&lt;BR /&gt;
&lt;P&gt;I find very useful routine to delete layers using laydel with wildcards in the name here:&lt;BR /&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-layers-using-laydel-with-wildcards-in-the-name/m-p/5515539/highlight/false#M330149" target="_blank"&gt;http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-delete-layers-using-laydel-with-wildcards-in-the-name/m-p/5515539/highlight/false#M330149&lt;/A&gt;&lt;BR /&gt;my question is:&lt;BR /&gt;Is it possible to modify some of these programs in this topic in order to isolate layers in a same way?&lt;BR /&gt;I tried to solve this issue but I have a problem: Layiso command used layers picked by user and I don't know how to take&amp;nbsp;these layers names as initial values&lt;BR /&gt;Any help will by very appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi Igal,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hps"&gt;perhaps&lt;/SPAN&gt; &lt;SPAN class="hps alt-edited"&gt;something like this&lt;/SPAN&gt;:&lt;/P&gt;
&lt;PRE&gt;(defun c:demo ( / laynames ss)
    (if (and (setq laynames (getstring T "\nEnter Layer Name(s) to isolate 'wild-cards can be used': "))
             (setq ss (ssget "_X" (list (cons 8 laynames) (cons 410 (getvar 'CTAB)))))
             )
        (command "_.layiso" ss "")
        (prompt (strcat "\nNo objects found in layers " laynames "... "))
        )
    (princ)
    )&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, &lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6066027#M134128</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-02T15:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6067420#M134129</link>
      <description>&lt;P&gt;Thank you for your efforts. Routine working good!&lt;BR /&gt;Now i need an "emulation" of LAYUNISO function. After invoking&amp;nbsp;"demo" function for example regular LAYUNISO function can not return previous position...&lt;BR /&gt;I think on this step need to involve layerstate-save and layerstate-restore functions..&lt;BR /&gt;How can I do it?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 06:26:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6067420#M134129</guid>
      <dc:creator>danglar</dc:creator>
      <dc:date>2016-03-03T06:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6067624#M134130</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@apelbaum2014 wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your efforts. Routine working good!&lt;BR /&gt;Now i need an "emulation" of LAYUNISO function. After invoking&amp;nbsp;"demo" function for example &lt;STRONG&gt;regular LAYUNISO function can not return previous position...&lt;/STRONG&gt;&lt;BR /&gt;I think on this step need to involve layerstate-save and layerstate-restore functions..&lt;BR /&gt;How can I do it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You're welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;'regular LAYUNISO function can not return previous position...'&lt;/P&gt;
&lt;P&gt;???&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Command: DEMO&lt;/P&gt;
&lt;P&gt;Enter Layer Name(s) to isolate 'wild-cards can be used': _*&lt;BR /&gt;_.layiso&lt;BR /&gt;Current setting: Hide layers, Viewports=Off&lt;/P&gt;
&lt;P&gt;Select objects on the layer(s) to be isolated or [Settings]:&amp;nbsp;&amp;nbsp; 1814 found&lt;/P&gt;
&lt;P&gt;Select objects on the layer(s) to be isolated or [Settings]:&lt;BR /&gt;6 layers have been isolated. Layer _model is current.&lt;BR /&gt;Command:&lt;BR /&gt;Command: LAYUNISO&lt;BR /&gt;Layers isolated by LAYISO command have been restored.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LAYUNISO command, will restore the previous layer state...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 09:23:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6067624#M134130</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-03T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068173#M134131</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@apelbaum2014 wrote:&lt;BR /&gt;
&lt;P&gt;.... Now i need an "emulation" of LAYUNISO function. ....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you use a regular-Layer-command approach [such as suggested in Post 2], then the LAYERP command will take you back to the previous condition.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:12:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068173#M134131</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-03-03T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068273#M134132</link>
      <description>&lt;P&gt;Thank you Henrique and Kent!&lt;/P&gt;&lt;P&gt;It was my mistake..&lt;/P&gt;&lt;P&gt;Program working properly without any problems..&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 14:43:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068273#M134132</guid>
      <dc:creator>danglar</dc:creator>
      <dc:date>2016-03-03T14:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: lisp to isolate layers using wildcards in the name...</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068348#M134133</link>
      <description>&lt;P&gt;You're welcome!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 15:05:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-isolate-layers-using-wildcards-in-the-name/m-p/6068348#M134133</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-03-03T15:05:46Z</dc:date>
    </item>
  </channel>
</rss>

