<?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: Autoloader - app.bundle home folder in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009904#M134963</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;I was thinking of some kind of variable (e.g. in the XML manifest file) saying "I'm sitting here". Another option would be to check all three possible locations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 19:12:18 GMT</pubDate>
    <dc:creator>vladimir_michl</dc:creator>
    <dc:date>2016-01-27T19:12:18Z</dc:date>
    <item>
      <title>Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6007394#M134961</link>
      <description>&lt;P&gt;Is there a way how to find which directory is the app loaded from? I need a way to point to a specific file in the application's own .bundle folder structure - e.g. to start a specific .exe with (startapp) from the CUI menu macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2016 19:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6007394#M134961</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-01-26T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009866#M134962</link>
      <description>&lt;P&gt;It's one of these 3 locations...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Users\%username%\AppData\Roaming\Autodesk\ApplicationPlugins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files\Autodesk\ApplicationPlugins&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\ProgramData\Autodesk\ApplicationPlugins&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;But if you're looking to do it from the code file within CAD, you'll need to do a reflection on the source file. Fairly easy to do in .NET not sure for LISP&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 18:54:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009866#M134962</guid>
      <dc:creator>redtransitconsultants</dc:creator>
      <dc:date>2016-01-27T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009904#M134963</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;I was thinking of some kind of variable (e.g. in the XML manifest file) saying "I'm sitting here". Another option would be to check all three possible locations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 19:12:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009904#M134963</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-01-27T19:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009968#M134964</link>
      <description>&lt;P&gt;I'm not sure you can do it in XML coding, even then if you could, how would you store that to call it up in a CUI button? I'm not sure that would work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For .NET, it's simply:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public static string AssemblyDirectory
{
    get
    {
        string codeBase = Assembly.GetExecutingAssembly().CodeBase;
        UriBuilder uri = new UriBuilder(codeBase);
        string path = Uri.UnescapeDataString(uri.Path);
        return Path.GetDirectoryName(path);
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if you don't know where it's stored and just looking to create a CUIx button to tell you where it is... then&amp;nbsp;need to have a macro that can check for a file in those 3 locations. I'm not positive that can be done as I've never tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 19:32:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6009968#M134964</guid>
      <dc:creator>redtransitconsultants</dc:creator>
      <dc:date>2016-01-27T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6015808#M134965</link>
      <description>&lt;P&gt;Variant:&lt;/P&gt;
&lt;PRE class="pre codeblock"&gt;(vl-filename-directory (findfile "&amp;lt;name&amp;gt;.cuix"))&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;Oops.&amp;nbsp;It is a bad idea. Sorry... &lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 22:53:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6015808#M134965</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-01-30T22:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Autoloader - app.bundle home folder</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6015986#M134966</link>
      <description>&lt;P&gt;This is what I have tried also. Unfortunately the "home" folder is not in the search path (and adding it would be a chicken-egg problem). I wish there was a mechanism for this as it is quite usual to access individual files from the app folder structure - EXEs, preconfigurations, resources...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt; &amp;nbsp;&lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2016 08:38:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/autoloader-app-bundle-home-folder/m-p/6015986#M134966</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-01-31T08:38:13Z</dc:date>
    </item>
  </channel>
</rss>

