c# cad注册表
自动加载lsp
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
string arxpath = Path.Combine(Application.StartupPath, "SmartMark3_2015X64.ARX"); RegistryKey smartkey = appsmartkey.CreateSubKey(cad804+"\\"+ "Applications\\SmartMark3"); smartkey.SetValue("DESCRIPTION", "SmartMark3 version 4.0",RegistryValueKind.String); smartkey.SetValue("LOADCTRLS",7,RegistryValueKind.DWord); smartkey.SetValue("LOADER",arxpath,RegistryValueKind.String); RegistryKey cmdkey = smartkey.CreateSubKey("Commands"); cmdkey.SetValue("SmartMark3","STBJ",RegistryValueKind.String); RegistryKey Groupskey = smartkey.CreateSubKey("Groups"); Groupskey.SetValue("SmartMark3", "SmartMark3",RegistryValueKind.String);