Skip to content

Instantly share code, notes, and snippets.

@vildar82
Last active February 27, 2018 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vildar82/a0926203c4e44fd6fbb1e173fcc54abc to your computer and use it in GitHub Desktop.
Save vildar82/a0926203c4e44fd6fbb1e173fcc54abc to your computer and use it in GitHub Desktop.
Civil3D. Изменение каталога трубопроводных сетей.
// Изменение каталога трубопроводных сетей - для Рудольфа.
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