Last active
February 27, 2018 06:19
-
-
Save vildar82/a0926203c4e44fd6fbb1e173fcc54abc to your computer and use it in GitHub Desktop.
Civil3D. Изменение каталога трубопроводных сетей.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Изменение каталога трубопроводных сетей - для Рудольфа. | |
var regNetwork = $"{HostApplicationServices.Current.UserRegistryProductRootKey}\\Profiles\\" + | |
$"{Application.GetSystemVariable("CPROFILE")}\\Preferences\\AeccUiNetwork100"; | |
using (var networkKey = Registry.CurrentUser.OpenSubKey(regNetwork, RegistryKeyPermissionCheck.ReadWriteSubTree)) | |
{ | |
networkKey.SetValue("SharedContentPath", @"C:\temp\ГП\Pipes Catalog\Aecc Shared Content"); | |
networkKey.SetValue("DCE203A2-D381-466f-A23E-08A9D9F8FDBD", | |
@"C:\temp\ГП\Pipes Catalog\US Imperial Structures\US Imperial Structures.apc"); | |
networkKey.SetValue("F670B5B9-DA12-476d-B461-4FB5C5650A82", | |
@"C:\temp\ГП\Pipes Catalog\Pipes Metric Russia\Pipes Metric Russia.apc"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment