c# cad注册表

自动加载lsp

  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);
自动加载ARX

 

posted @ 2017-11-24 11:03  心白云  阅读(337)  评论(0编辑  收藏  举报