Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pipe Catalog Location

2 REPLIES 2
Reply
Message 1 of 3
Civil3DReminders_com
694 Views, 2 Replies

Pipe Catalog Location

Is it possible to get the current Catalog Folder Location for gravity pipe networks? It's the folder specified in the SETNETWORKCATALOG command.

 

Or do I have to look to the registry and get the value from there?

HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\AutoCAD\R20.0\ACAD-E000:409\aecProfile\Macros\PRESSUREPIPESCATALOG

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
2 REPLIES 2
Message 2 of 3

I hope I'm wrong but I don't believe you can set or get the network catalog folders programmatically. Also, you will want to search the current user profile for the actual location of the catalog, which I don't believe is reflected under HKLM.

I use a lisp routine to get and set the catalog locations under:
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R20.0\ACAD-E000:409\Profiles\<<C3D_Metric>>\Preferences\AeccUiNetwork100
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R20.0\ACAD-E000:409\Profiles\<<C3D_Metric>>\Preferences\AeccPressurePipes100

The following value refer to the catalog data type:
Gravity:
DCE203A2-D381-466f-A23E-08A9D9F8FDBD = US Imperial Structures
16C49365-B844-484b-92CE-9A8ACE681B57 = US Imperial Pipes
F1FEBE2D-D589-4f85-BF8E-650ED06A5EA5 = Metric Structures
F670B5B9-DA12-476d-B461-4FB5C5650A82 = Metric Pipes

I don't fully understand the gravity catalogs in the registry, but I change these two to point to my custom catalogs and things seem to work out:
ADD6EA33-AED3-4EBF-B382-D99688E5BC72 = Metric PushOn
611746E2-B19E-4F8E-ACF7-F12491879819 = Imperial PushOn

I hope there is a better way to access and change these values though.

Message 3 of 3

Thanks, this is going to be more complicated then it needs to be. Have to find the current profile, find the folder location in the registry, and then open the file to get the info. Yeah, get to duplicate Autodesk code!

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report