<?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 set Part Catalog via API for a drawing? in Civil 3D Customization Forum</title>
    <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13420316#M1222</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10367768"&gt;@varshaauti27&lt;/a&gt;&amp;nbsp;, no I don't have yet. But I think you can search online on how to read or write registry value. It should be simple. I may even consider adding them to the blog post section in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2025 02:56:34 GMT</pubDate>
    <dc:creator>soonhui</dc:creator>
    <dc:date>2025-04-11T02:56:34Z</dc:date>
    <item>
      <title>How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13064638#M1211</link>
      <description>&lt;P&gt;For a drawing, I can call up the relevant dialog box and set the Part Catalog via the command line&amp;nbsp;&amp;nbsp;_aeccsetnetworkcatalog ( for Network) and&amp;nbsp;_aeccsetpressurenetworkcatalog ( for Pressure Network).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But can I do it via the .Net API?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 10:27:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13064638#M1211</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2024-10-04T10:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13067154#M1212</link>
      <description>&lt;P&gt;Well, Part Catalog is not set PER DRAWING, rather it is set as current user's preference, saved with AutoCAD profile in Window registry's HKEY_CURRENT_USER hive:&lt;/P&gt;
&lt;P&gt;\HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.0\ACAD-[X]100:409\Profiles\[ProfileName]\Preferences\AeccUiNetwork130\&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Underneath the registry key "AeccUiNetwork130", there should a a bunch of GUID subkeys, each points to a Part Catalog's *.apc file, which is in a Part Catalog folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first GUID key (except for the "(Default)" key) is the current Part Catalog when AutoCAD runs with given profile. When you run the command "&lt;SPAN&gt;_aeccsetnetworkcatalog" which brings up a dialog box for user to select a current Part Catalog, the "AeccUiNetwork130" registry is updated by moving the selected part catalog GUID key to the top.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you can see, the current Part Catalog is one of the C3D user preferences, not "PER DRAWING" based.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2024 01:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13067154#M1212</guid>
      <dc:creator>Norman_Yuan</dc:creator>
      <dc:date>2024-10-06T01:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13068480#M1213</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@Norman_Yuan&lt;/a&gt;&amp;nbsp;, thanks for the explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But is there a .Net API that allows me to change the catalog without me messing around with the registry?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 06:08:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13068480#M1213</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2024-10-07T06:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13069203#M1214</link>
      <description>&lt;P&gt;No, there is no C3D API, I believe. Since the registry is in HKEY_CURRENT_USER hive, there should be no issue for current user to use code to update this registry to achieve the same result as do it via the dialog box in C3D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2024 13:33:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13069203#M1214</guid>
      <dc:creator>Norman_Yuan</dc:creator>
      <dc:date>2024-10-07T13:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13070845#M1215</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@Norman_Yuan&lt;/a&gt;&amp;nbsp;, I thought you were right but upon further testing. Now I don't think so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I have two drawings, both opened &lt;EM&gt;at the same time&lt;/EM&gt; in Civil 3D, and the Part Catalog Dialog box shows different Pipe/Structure Catalog.&amp;nbsp; See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="metric.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1418885i82B0F5B2C817E353/image-size/medium?v=v2&amp;amp;px=400" role="button" title="metric.jpg" alt="metric.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="imperial.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1418886i8A9731D67984FED3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="imperial.jpg" alt="imperial.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I don't think the catalog setting is stored inside the registry and cannot be on per user machine basis, it must be on per drawing basis like &lt;A href="https://forums.autodesk.com/t5/civil-3d-forum/why-do-i-have-to-set-pressure-part-catalog/td-p/13070542" target="_blank" rel="noopener"&gt;Pressure Pipe Catalog&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 06:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13070845#M1215</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2024-10-08T06:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13139722#M1216</link>
      <description>&lt;P&gt;Sorry I missed your latest message. thus the late reply here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, what matters in the "Pipe Network Catalog Settings" is the folder location for the catalogs (i.e. a folder that contains at least one, or multiple catalogs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the dialog is to open, C3D would first look at at available partslist in the drawing and determine the partfamilies in the partslist are from which catalog in that folder. Then set that catalog as the selected one in the dropdown list. While it is possible multiple partslists in a drawing could be built on different catalog technically with C3D, I'd consider it is extremely bad practice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, with the 2 drawing you attached here, when the "Catalog" dialog opens in my computer, the dropdown lists are all blank (no catalog is selected), because the catalog folder in my computer has a different folder location than the default C3D settings, and in my catalogs folder, there is no catalog name like "US Imperial..." or "Metric ...", all Catalogs in the folder of my computer are named differently. However, C3D only search the folder saved in the HKCU registry for partfamilies-matched catalog based on partslist in the drawing, when opening that dialog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also verify it by renaming the "US Imperial...." catalog file to something else. Then if you open the dialog, you would see the default catalog changes to the newly named catalog, because the partslist's partfamilies match the ones in that catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would all become messy if the drawing has multiple partslist based different catalogs. Again, it is bad practice and should be avoid with all efforts.&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;</description>
      <pubDate>Fri, 08 Nov 2024 20:20:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13139722#M1216</guid>
      <dc:creator>Norman_Yuan</dc:creator>
      <dc:date>2024-11-08T20:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13357275#M1217</link>
      <description>&lt;P&gt;We have a need to enable this same functionality for Civil 3D Pipes Catalog and Pressure Pipes Catalog. We had a solution in place for years that renamed the local &lt;STRONG&gt;C:\ProgramData\Autodesk\C3D 202[X]\enu\Pipes Catalog&lt;/STRONG&gt; folder temporarily and then created a Symbolic Link named &lt;STRONG&gt;Pipes Catalog&lt;/STRONG&gt; in its place which pointed to the network location used on the specific project the drawing belonged to. However, creation of Symbolic Links on the fly has become a problem with the IT department as it requires Administrator rights to do it, and security is now dictating that standard BIM users not have local Admin privileges any longer.&lt;BR /&gt;&lt;BR /&gt;So, I found this thread while searching for another method to accomplish the same task. My question is, how does Acad.exe get notified that the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;\HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.0\ACAD-[X]100:409\Profiles\[ProfileName]\Preferences\AeccUiNetwork130\&lt;/STRONG&gt; values have been modified in the registry and need to be re-read in?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 20:16:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13357275#M1217</guid>
      <dc:creator>DJB_CADfx</dc:creator>
      <dc:date>2025-03-06T20:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13404251#M1218</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/865948"&gt;@DJB_CADfx&lt;/a&gt;&amp;nbsp;, how does acad.exe get notified and to reread?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The answer is: whenever you open the drawing and operate on it?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:11:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13404251#M1218</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2025-04-02T12:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13416994#M1219</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you manage to find a workaround to set the Catalog programmatically?&amp;nbsp;&lt;SPAN&gt;Also, do you know if the Pipe/Pressure Network catalog path is drawing-specific or machine-specific?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2025 14:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13416994#M1219</guid>
      <dc:creator>varshaauti27</dc:creator>
      <dc:date>2025-04-09T14:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13418051#M1220</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10367768"&gt;@varshaauti27&lt;/a&gt;&amp;nbsp;, thanks for the question(s). I've actually written 3 posts addressing them all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://civilwhiz.com/docs/how-to-set-gravity-network-pipe-structure-catalog/" target="_blank" rel="noopener"&gt;Gravity Network is machine specific&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://civilwhiz.com/docs/how-to-set-pressure-network-catalog-for-a-drawing/" target="_blank" rel="noopener"&gt;Pressure Network is drawing specific&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;You have to &lt;A href="https://civilwhiz.com/docs/part-size-part-family-parts-list-and-network-catalog-for-gravity-and-pressure-networks/" target="_blank" rel="noopener"&gt;change registry in order to set Catalog programmaticall&lt;/A&gt;y.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 10 Apr 2025 01:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13418051#M1220</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2025-04-10T01:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13419468#M1221</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7472042"&gt;@soonhui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the detailed explanation. Do you have a sample code snippet to set the network catalog programmatically, either using C# or AutoLISP?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 16:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13419468#M1221</guid>
      <dc:creator>varshaauti27</dc:creator>
      <dc:date>2025-04-10T16:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Part Catalog via API for a drawing?</title>
      <link>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13420316#M1222</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10367768"&gt;@varshaauti27&lt;/a&gt;&amp;nbsp;, no I don't have yet. But I think you can search online on how to read or write registry value. It should be simple. I may even consider adding them to the blog post section in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 02:56:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/civil-3d-customization-forum/how-to-set-part-catalog-via-api-for-a-drawing/m-p/13420316#M1222</guid>
      <dc:creator>soonhui</dc:creator>
      <dc:date>2025-04-11T02:56:34Z</dc:date>
    </item>
  </channel>
</rss>

