<?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: Setting File Paths in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12690649#M4708</link>
    <description>&lt;P&gt;Not only that, but almost the whole acad security feature is worthless IMO.&lt;/P&gt;&lt;P&gt;The only "dangerous" thing that has ever happened with acad is people including an acad.lsp in the same folder as their drawings. It was never on purpose, but someone devious started sending files with that and people did not know they were bad.&lt;/P&gt;&lt;P&gt;Anyway, that is the only thing to watch for, as the security does not prevent bad things from running, just bad things from loading. The real danger is you purposefully running something bad, and its too late at that point.&lt;/P&gt;&lt;P&gt;The funny thing is it took adesk 5 years to finally add this to the security dialog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesMaeding_0-1712367756035.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346508i98513B26C92BC890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesMaeding_0-1712367756035.png" alt="JamesMaeding_0-1712367756035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and its the only useful thing, if trying to protect against that almost extinct acad.lsp thing.&lt;/P&gt;&lt;P&gt;Meanwhile, real problems like app ids are left to jump from dwg to dwg like an open border.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Apr 2024 01:44:07 GMT</pubDate>
    <dc:creator>JamesMaeding</dc:creator>
    <dc:date>2024-04-06T01:44:07Z</dc:date>
    <item>
      <title>Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12678257#M4703</link>
      <description>&lt;P&gt;Hi Guys&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add to my Trusted file location search Paths as well as Set my Qnew Template. i have manges to add support paths, plot style paths and template paths but cant seem to set these 2? are there any specific reasons why i cant access them. here is the code i use for setting others:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;     public void AddPlotStyles(string location)
     {
         Document doc = Application.DocumentManager.MdiActiveDocument;
         Editor ed = doc.Editor;
         var preferences = Application.Preferences as dynamic;
         if (preferences != null)
         {
             try
             {
                 if (preferences.Files.PrinterStyleSheetPath.Equals(location, StringComparison.OrdinalIgnoreCase))
                 {
                     ed.WriteMessage($"\nPlot Style path: {location} Already Exists.");
                 }
                 else
                 {
                     preferences.Files.PrinterStyleSheetPath = location;
                     ed.WriteMessage($"\nPlot Style path: {location} Added.");
                 }
             }
             catch (System.Exception)
             {
                 ed.WriteMessage($"\nPlot Style path: {location} Already Exists.");
             }
         }
     }&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 01 Apr 2024 08:22:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12678257#M4703</guid>
      <dc:creator>dominique.vdwesthuizen</dc:creator>
      <dc:date>2024-04-01T08:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689225#M4704</link>
      <description>&lt;P&gt;I suppose Trusted Path is not exposed because of obvious reasons.&lt;/P&gt;&lt;P&gt;QNew template: look at you're&lt;/P&gt;&lt;P&gt;var filesPrefs = acadPrefs.Files;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SENL1362_0-1712318209194.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346258i822FE2D3E4AD7AD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SENL1362_0-1712318209194.png" alt="SENL1362_0-1712318209194.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 12:06:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689225#M4704</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2024-04-05T12:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689577#M4705</link>
      <description>&lt;P&gt;You can set TrustedPaths with a *.reg file like mine below. Or you can edit it the registry directly through code.&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.0\ACAD-4107:409\Profiles\&amp;lt;&amp;lt;ACADE&amp;gt;&amp;gt;\Variables]
"TRUSTEDPATHS"="C:\\AcadCustom\\Support_GS"

[HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.0\ACAD-4107:409\Profiles\&amp;lt;&amp;lt;VANILLA&amp;gt;&amp;gt;\Variables]
"TRUSTEDPATHS"="C:\\AcadCustom\\Support_GS"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:35:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689577#M4705</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-04-05T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689921#M4706</link>
      <description>&lt;P&gt;I know but, just like Autodesk, i thought it would be wiser to keep this more or less secret.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 17:24:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689921#M4706</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2024-04-05T17:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689934#M4707</link>
      <description>&lt;P&gt;I don't think there's anything secret about it. Any IT tech would know it.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 17:32:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12689934#M4707</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-04-05T17:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Setting File Paths</title>
      <link>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12690649#M4708</link>
      <description>&lt;P&gt;Not only that, but almost the whole acad security feature is worthless IMO.&lt;/P&gt;&lt;P&gt;The only "dangerous" thing that has ever happened with acad is people including an acad.lsp in the same folder as their drawings. It was never on purpose, but someone devious started sending files with that and people did not know they were bad.&lt;/P&gt;&lt;P&gt;Anyway, that is the only thing to watch for, as the security does not prevent bad things from running, just bad things from loading. The real danger is you purposefully running something bad, and its too late at that point.&lt;/P&gt;&lt;P&gt;The funny thing is it took adesk 5 years to finally add this to the security dialog:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JamesMaeding_0-1712367756035.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1346508i98513B26C92BC890/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JamesMaeding_0-1712367756035.png" alt="JamesMaeding_0-1712367756035.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and its the only useful thing, if trying to protect against that almost extinct acad.lsp thing.&lt;/P&gt;&lt;P&gt;Meanwhile, real problems like app ids are left to jump from dwg to dwg like an open border.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 01:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/setting-file-paths/m-p/12690649#M4708</guid>
      <dc:creator>JamesMaeding</dc:creator>
      <dc:date>2024-04-06T01:44:07Z</dc:date>
    </item>
  </channel>
</rss>

