<?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: Profile refresh from registry? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177894#M75580</link>
    <description>The problem is that the catalog file paths appear to be unique to the profile itself, and not represented by any system variables.&lt;BR /&gt;
&lt;BR /&gt;
I've been working on an alternate approach where I export the active profile, change the file path within the text, and then import the profile. The hard pard is that this is extremely slow and I'm having trouble exporting a profile that actually contains all of the information within the current profile. I've been able to get this limited profile through the following select lines from my code. I'm thinking that there may be an issue with exporting an MEP profile in this way, and that this may be the reason why there are settings that are not being included in the exported profile.&lt;BR /&gt;
&lt;BR /&gt;
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;&lt;BR /&gt;
&lt;BR /&gt;
IAcadPreferences prefs = (IAcadPreferences)AcadApp.Preferences;&lt;BR /&gt;
prefs.Profiles.ExportProfile(profileName, tempFile);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
There are some references to IAec/IAecb/Aecb/etc. profiles within some of the MEP .dlls, but I have yet to be able to find an alternate way to export a profile through the AEC references.</description>
    <pubDate>Wed, 13 Feb 2008 15:54:33 GMT</pubDate>
    <dc:creator>rdswords</dc:creator>
    <dc:date>2008-02-13T15:54:33Z</dc:date>
    <item>
      <title>Profile refresh from registry?</title>
      <link>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177891#M75577</link>
      <description>Im working on a method that will change some file paths in the active profile by modifying their values in the registry. This is intended to end up on a tool palette, and hence will execute while the current profile has already been loaded into memory. The thing I need to resolve is that the changes to the registry to not immediately take effect in AutoCAD until the active profile is refreshed in memory by a means like opening the Options dialog and then hitting OK. This somehow causes the registry changes to be loaded into memory. Does anyome know a way to get AutoCAD to programmatically reload/refresh the current profile from the data stored in the registry?&lt;BR /&gt;
&lt;BR /&gt;
As a side note, I am actually working in MEP on content catalog paths, but I'm not sure if this will call for a different solution from plain AutoCAD.</description>
      <pubDate>Tue, 12 Feb 2008 17:35:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177891#M75577</guid>
      <dc:creator>rdswords</dc:creator>
      <dc:date>2008-02-12T17:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Profile refresh from registry?</title>
      <link>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177892#M75578</link>
      <description>Somebody throw me a bone here. It is very frustrating to not be able to get any advice from any available resource.</description>
      <pubDate>Wed, 13 Feb 2008 15:21:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177892#M75578</guid>
      <dc:creator>rdswords</dc:creator>
      <dc:date>2008-02-13T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Profile refresh from registry?</title>
      <link>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177893#M75579</link>
      <description>Instead of editing the registry you might want to edit the appropriate system variables inside Autocad. The help files are usually pretty good when it comes to pointing out which sysvar applies to which user setting.&lt;BR /&gt;
&lt;BR /&gt;
You may also be able to get away with modifying the profile, and then making it active, forcing it to load. However this would require an extra dummy profile, and cpu time to switch back and forth.</description>
      <pubDate>Wed, 13 Feb 2008 15:37:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177893#M75579</guid>
      <dc:creator>jbooth</dc:creator>
      <dc:date>2008-02-13T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Profile refresh from registry?</title>
      <link>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177894#M75580</link>
      <description>The problem is that the catalog file paths appear to be unique to the profile itself, and not represented by any system variables.&lt;BR /&gt;
&lt;BR /&gt;
I've been working on an alternate approach where I export the active profile, change the file path within the text, and then import the profile. The hard pard is that this is extremely slow and I'm having trouble exporting a profile that actually contains all of the information within the current profile. I've been able to get this limited profile through the following select lines from my code. I'm thinking that there may be an issue with exporting an MEP profile in this way, and that this may be the reason why there are settings that are not being included in the exported profile.&lt;BR /&gt;
&lt;BR /&gt;
using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;&lt;BR /&gt;
&lt;BR /&gt;
IAcadPreferences prefs = (IAcadPreferences)AcadApp.Preferences;&lt;BR /&gt;
prefs.Profiles.ExportProfile(profileName, tempFile);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
There are some references to IAec/IAecb/Aecb/etc. profiles within some of the MEP .dlls, but I have yet to be able to find an alternate way to export a profile through the AEC references.</description>
      <pubDate>Wed, 13 Feb 2008 15:54:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/profile-refresh-from-registry/m-p/2177894#M75580</guid>
      <dc:creator>rdswords</dc:creator>
      <dc:date>2008-02-13T15:54:33Z</dc:date>
    </item>
  </channel>
</rss>

