<?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: How do you make a tool to open a drawing from a tool palette? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342331#M131980</link>
    <description>&lt;P&gt;Hi Rob,&lt;/P&gt;
&lt;P&gt;if SDI=1 your code will works as expected.&lt;/P&gt;
&lt;P&gt;If you are not using LT, I would suggest something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;^C^C(vl-load-com);(vla-activate (vla-open (vla-get-documents (vlax-get-acad-object))"D:/Dropbox/Acad/Steel Shapes.dwg"));&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>Sun, 22 May 2016 10:13:29 GMT</pubDate>
    <dc:creator>hmsilva</dc:creator>
    <dc:date>2016-05-22T10:13:29Z</dc:date>
    <item>
      <title>How do you make a tool to open a drawing from a tool palette?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342048#M131979</link>
      <description>&lt;P&gt;Hi, I'm trying to make a tool on a custom&amp;nbsp;tool palette that will open a drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following command line works, but I have to press enter to complete the command and open the drawing.&amp;nbsp;First, set FILEDIA=0 or this won't work at all. &amp;nbsp;The "open" command is one of the Express tools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#3366FF"&gt;^C^C_open "D:\Dropbox\Acad\Steel Shapes.dwg";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The semi-colon at the end is supposed to be the same as pressing "Enter", but it doesn't work. &amp;nbsp;I also tried a space and ^M, which are also supposed to be the same as pressing enter. &amp;nbsp;I also tried replacing back-slashes with forward slashes, it still works the same, I still have to press enter to open the drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried replacing "_open" with ^O but found it toggling ortho instead of opening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 21:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342048#M131979</guid>
      <dc:creator>tiger4956</dc:creator>
      <dc:date>2016-05-21T21:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make a tool to open a drawing from a tool palette?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342331#M131980</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;
&lt;P&gt;if SDI=1 your code will works as expected.&lt;/P&gt;
&lt;P&gt;If you are not using LT, I would suggest something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;^C^C(vl-load-com);(vla-activate (vla-open (vla-get-documents (vlax-get-acad-object))"D:/Dropbox/Acad/Steel Shapes.dwg"));&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>Sun, 22 May 2016 10:13:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342331#M131980</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-05-22T10:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make a tool to open a drawing from a tool palette?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342498#M131981</link>
      <description>&lt;P&gt;Thank you very much! &amp;nbsp;Your code worked exactly as expected. &amp;nbsp;Some of my tool palettes are getting bloated, and in some cases I would just rather open the source drawing and copy-paste what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 13:53:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342498#M131981</guid>
      <dc:creator>tiger4956</dc:creator>
      <dc:date>2016-05-22T13:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do you make a tool to open a drawing from a tool palette?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342502#M131982</link>
      <description>&lt;P&gt;You're welcome, Rob!&lt;BR /&gt;Glad I could help&lt;BR /&gt;&lt;BR /&gt;Henrique&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2016 13:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-do-you-make-a-tool-to-open-a-drawing-from-a-tool-palette/m-p/6342502#M131982</guid>
      <dc:creator>hmsilva</dc:creator>
      <dc:date>2016-05-22T13:54:38Z</dc:date>
    </item>
  </channel>
</rss>

