<?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: Lisp for loading and unloading Tool Palettes in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/7905955#M106478</link>
    <description>&lt;P&gt;(if&lt;STRONG&gt; (= (strcase tpPath)&amp;nbsp;&amp;nbsp;&amp;nbsp; (strcase "c:\\Users\\bbbbb\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette"))&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-put-toolPalettePath pFiles "c:\\Users\\aaaaa\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-put-toolPalettePath pFiles "c:\\Users\\bbbbb\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 22:00:29 GMT</pubDate>
    <dc:creator>cadffm</dc:creator>
    <dc:date>2018-04-03T22:00:29Z</dc:date>
    <item>
      <title>Lisp for loading and unloading Tool Palettes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/7905026#M106477</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this on the AUGI forum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(setq pFiles (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) ;;get file preferences
(setq tpPath (vla-get-toolPalettePath pFiles)) ;;get current tool pallette path
(setq tpPath "c:\\Users\\(username)\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette") ;;set your path here
(vla-put-toolPalettePath pFiles tpPath) ;;set tool palette path&lt;/PRE&gt;&lt;P&gt;It works great. I have it assigned to a button in the Ribbon and I toggle between palettes. I would like to have the single button load and unload the tool palette and also load the palette if a palette is already loaded. So if the tool palette is loaded, click it to unload and vice versa. I guess a few If, Then statements need to be added. The above lisp sets the assigned palette current.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 17:01:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/7905026#M106477</guid>
      <dc:creator>VincentSheehan</dc:creator>
      <dc:date>2018-04-03T17:01:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Lisp for loading and unloading Tool Palettes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/7905955#M106478</link>
      <description>&lt;P&gt;(if&lt;STRONG&gt; (= (strcase tpPath)&amp;nbsp;&amp;nbsp;&amp;nbsp; (strcase "c:\\Users\\bbbbb\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette"))&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-put-toolPalettePath pFiles "c:\\Users\\aaaaa\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vla-put-toolPalettePath pFiles "c:\\Users\\bbbbb\\AppData\\Roaming\\Autodesk\\C3D 2018\\enu\\Support\\ToolPalette")&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 22:00:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/7905955#M106478</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2018-04-03T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Betreff: Lisp for loading and unloading Tool Palettes</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/8580719#M106479</link>
      <description>&lt;P&gt;This might not be the best method but I ended up writing this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun C:eperospal ()
(setq pFiles (vla-get-files (vla-get-preferences (vlax-get-acad-object)))) ;;get file preferences
(setq tpPath "f:\\8-Drawing Standards\\Autodesk\\Tool Palettes\\EP-EROS") ;;set your path here
(vla-put-toolPalettePath pFiles tpPath) ;;set tool palette path
   
   (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:23:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-for-loading-and-unloading-tool-palettes/m-p/8580719#M106479</guid>
      <dc:creator>VincentSheehan</dc:creator>
      <dc:date>2019-02-07T18:23:31Z</dc:date>
    </item>
  </channel>
</rss>

