<?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: Create custom buttons to freeze/ thaw a specific layer in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613330#M111277</link>
    <description>&lt;P&gt;Works perfectly! Thank you for your reply.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 12:46:30 GMT</pubDate>
    <dc:creator>dan.luxford</dc:creator>
    <dc:date>2017-12-11T12:46:30Z</dc:date>
    <item>
      <title>Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613124#M111274</link>
      <description>&lt;P&gt;Hi All, I am trying to create two buttons to freeze and thaw a specific layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To elaborate, I have two layers - 2D Arch Xref and 3D Arch Xref (these are the layers that the xreferences are placed in. With nearly all the drawings I work on I have multiple xrefs with multiple layers, which means I have somewhere between 100 and 500 layers in a drawing/ model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rather than scroll through all these layers to get to the ones I want (the above layers) I would like to create buttons to quickly freeze/ thaw the layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If someone out the could provide me with the correct button syntax or point me to a tutorial it would be most appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 11:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613124#M111274</guid>
      <dc:creator>dan.luxford</dc:creator>
      <dc:date>2017-12-11T11:08:45Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613236#M111275</link>
      <description>The command is -LAYER for using LAYER in commandlineversion.&lt;BR /&gt;So you can see the snytax of that command.&lt;BR /&gt;Command: -LAYER follow the command..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In Macro use ; as Enter &lt;BR /&gt;&lt;BR /&gt;'-LAYER;freeze;*|MyXREFlayer;;&lt;BR /&gt;freeze all MyXREFlayer in all XREFs&lt;BR /&gt;&lt;BR /&gt;'-LAYER;freeze;*ARC*|MyXREFlayer&lt;BR /&gt;freeze MyXREFlayer in all XREFs with refname pattern *ARC*&lt;BR /&gt;&lt;BR /&gt;For Wildcards in Acad look at F1 and Lispfunction WCMATCH</description>
      <pubDate>Mon, 11 Dec 2017 12:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613236#M111275</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2017-12-11T12:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613240#M111276</link>
      <description>&lt;P&gt;... or lisp maybe...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(ToggleFreeze-Thaw "&lt;STRONG&gt;2D Arch Xref&lt;/STRONG&gt;")
  
(defun ToggleFreeze-Thaw (layer / )
  (if (and (or (tblsearch "LAYER" layer)
               (prompt (strcat "\nLayer '" layer "' not found it the drawing. ")))
           (setq laydef (entget (tblobjname "LAYER" layer))))
    (if (= 1 (logand (cdr (assoc 70 (entget (tblobjname "LAYER" layer)))) 1))
      (command "_.LAYER" "_ON" layer "_Thaw" layer "")
      (if (= layer (getvar 'CLAYER))
        (command "_.LAYER" "_S" "0" "_Freeze" layer "")
        (command "_.LAYER" "_Freeze" layer ""))))
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613240#M111276</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2017-12-11T12:10:46Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613330#M111277</link>
      <description>&lt;P&gt;Works perfectly! Thank you for your reply.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613330#M111277</guid>
      <dc:creator>dan.luxford</dc:creator>
      <dc:date>2017-12-11T12:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613344#M111278</link>
      <description>&lt;P&gt;Thank you for the reply, but the button way works for me.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:51:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613344#M111278</guid>
      <dc:creator>dan.luxford</dc:creator>
      <dc:date>2017-12-11T12:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613351#M111279</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please insert into the CUI following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;^C^C_Layer;_make;"2D Arch Xref";;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the 3D layer it's similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reagards Jürgen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 12:54:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613351#M111279</guid>
      <dc:creator>Juergen_Becker</dc:creator>
      <dc:date>2017-12-11T12:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613403#M111280</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5442532"&gt;@dan.luxford&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the reply, but the button way works for me.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sure, you're welcome, whatever fits you better!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for you to know, that was meant to be a (single) button as well - not two buttons, just one.... which is hard to achieve with macros only.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:11:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613403#M111280</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2017-12-11T13:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom buttons to freeze/ thaw a specific layer</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613408#M111281</link>
      <description>&lt;P&gt;BeeKeeCZ, to be honest I have absolutely no idea about LISP routines, how to make them, or initiate them in Autocad. Maybe one day I'll get on to them.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:14:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/create-custom-buttons-to-freeze-thaw-a-specific-layer/m-p/7613408#M111281</guid>
      <dc:creator>dan.luxford</dc:creator>
      <dc:date>2017-12-11T13:14:02Z</dc:date>
    </item>
  </channel>
</rss>

