<?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 to get the &amp;quot;Support File Search Path&amp;quot; with code? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305173#M61414</link>
    <description>&lt;P&gt;how can i get the exact code for other list folders, for example"Automatic SAve File Location"&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 12:07:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-11T12:07:03Z</dc:date>
    <item>
      <title>How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965236#M61407</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I would like to get de&amp;nbsp; "Support File Search Path" and "Working Support File Search Path" from Option in menu "Tools".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With VBA the name of dictionay was `DWGPROPS' and I used&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Const DICTIONARY_NAME = "DWGPROPS"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set DwgInfo = ThisDrawing.Dictionaries(DICTIONARY_NAME)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DwgInfo.GetXRecordData DataType, Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but with .NET the dictionary name isn´t "DWGPROPS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965236#M61407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-25T13:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965272#M61408</link>
      <description>&lt;P&gt;ApplicationServices.Application.AcadApplication.Preferences.files.SupportPath&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;same for all the other "options"..&lt;/P&gt;&lt;P&gt;ApplicationServices.Application.AcadApplication.Preferences.files.____________&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 13:33:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965272#M61408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-25T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965424#M61409</link>
      <description>&lt;P&gt;Another way is: &lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;string support_path = Application.GetSystemVariable("ACADPREFIX") as string;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 14:59:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965424#M61409</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2011-03-25T14:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965700#M61410</link>
      <description>&lt;P&gt;it is easier than it thought!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thaks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 17:26:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/2965700#M61410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-25T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/5009310#M61411</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ACADPREFIX&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to edit this programatically?&amp;nbsp; ie add some file support paths?&lt;/P&gt;</description>
      <pubDate>Sat, 03 May 2014 09:21:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/5009310#M61411</guid>
      <dc:creator>StormyC</dc:creator>
      <dc:date>2014-05-03T09:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305173#M61414</link>
      <description>&lt;P&gt;how can i get the exact code for other list folders, for example"Automatic SAve File Location"&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 12:07:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305173#M61414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T12:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305342#M61415</link>
      <description>&lt;LI-CODE lang="csharp"&gt;string autoSavePath = Application.GetSystemVariable("SAVEFILEPATH") as string;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 May 2021 13:04:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305342#M61415</guid>
      <dc:creator>Gepaha</dc:creator>
      <dc:date>2021-05-11T13:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305415#M61416</link>
      <description>&lt;P&gt;&amp;nbsp;Not all file paths in the "Options-&amp;gt;Files" dialog box have a corresponding system variables. If the ones you need to reach as corresponding system variables, such as "automatic save location", then using system variable "SAVEFILEPATH", as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/565180"&gt;@Gepaha&lt;/a&gt;&amp;nbsp;suggested, would be easy and simple. For others, you can reach them by&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Application.Preferences, which is an AcadObject (COM API object).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the code would be like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dynamic preferences = Autodesk.AutoCAD.ApplicationServices.Application.Preferences;&lt;/P&gt;
&lt;P&gt;var autoSavePath = (string)preferences.Files.AutoSavePath;&lt;/P&gt;
&lt;P&gt;var supportPath = (string)preferences.Files.SupportPath;&amp;nbsp; &amp;nbsp; &amp;nbsp; // paths separated with ";"&lt;/P&gt;
&lt;P&gt;var teplatePath = (string)preferences.Files.TemplateDwgPath.&lt;/P&gt;
&lt;P&gt;... ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 13:35:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305415#M61416</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2021-05-11T13:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305433#M61417</link>
      <description>Thankx.&lt;BR /&gt;But i want to have it in the form&lt;BR /&gt;ApplicationServices.Application.AcadApplication.Preferences.files.____________, what should i give? I have tried with AutoSavePath but doesnt work</description>
      <pubDate>Tue, 11 May 2021 13:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305433#M61417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T13:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305498#M61418</link>
      <description>Thx.&lt;BR /&gt;But i have tried for "Automatic Save File Location" with "Application.AcadApplication.Preferences.files.AutoSavePath", it turned to be invalid argument.</description>
      <pubDate>Tue, 11 May 2021 14:02:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305498#M61418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T14:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305545#M61419</link>
      <description>&lt;P&gt;You need to better explain what you want to do.&lt;/P&gt;&lt;P&gt;Are you using a listbox on windows forms? Exactly what do you want to add?&lt;/P&gt;&lt;P&gt;It is best to post the code.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:17:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305545#M61419</guid>
      <dc:creator>Gepaha</dc:creator>
      <dc:date>2021-05-11T14:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the "Support File Search Path" with code?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305711#M61420</link>
      <description>I was using a python node in Dynamo to add new file path to Options under different list folders. What i want is how should i change the code "SupportPath" in order to add new path under the list folders "Automatic Save File Location" and "Temporary External Reference File Location". Here is my code in a Python node:&lt;BR /&gt;&lt;BR /&gt;# Load the Python Standard and DesignScript Libraries&lt;BR /&gt;import sys&lt;BR /&gt;import clr&lt;BR /&gt;# Add Assemblies for AutoCAD and Civil3D&lt;BR /&gt;clr.AddReference('AcMgd')&lt;BR /&gt;clr.AddReference('AcCoreMgd')&lt;BR /&gt;clr.AddReference('AcDbMgd')&lt;BR /&gt;clr.AddReference('AecBaseMgd')&lt;BR /&gt;clr.AddReference('AecPropDataMgd')&lt;BR /&gt;clr.AddReference('AeccDbMgd')&lt;BR /&gt;# Import references from AutoCAD&lt;BR /&gt;from Autodesk.AutoCAD.Runtime import *&lt;BR /&gt;from Autodesk.AutoCAD.ApplicationServices import *&lt;BR /&gt;from Autodesk.AutoCAD.EditorInput import *&lt;BR /&gt;from Autodesk.AutoCAD.DatabaseServices import *&lt;BR /&gt;from Autodesk.AutoCAD.Geometry import *&lt;BR /&gt;# Import references from Civil3D&lt;BR /&gt;from Autodesk.Civil.ApplicationServices import *&lt;BR /&gt;from Autodesk.Civil.DatabaseServices import *&lt;BR /&gt;&lt;BR /&gt;path = IN[0]&lt;BR /&gt;Application.AcadApplication.Preferences.Files.SupportPath += “;” + path&lt;BR /&gt;OUT = Application.AcadApplication.Preferences.Files.SupportPath.ToString().split(";")</description>
      <pubDate>Tue, 11 May 2021 15:19:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-the-quot-support-file-search-path-quot-with-code/m-p/10305711#M61420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T15:19:56Z</dc:date>
    </item>
  </channel>
</rss>

