Revit二次开发中遇到未加载程序集错误的解决方法

        Type type = typeof(HoleCreatorCommand);
            string path = Directory.GetParent(type.Assembly.Location).FullName;
            path = Path.Combine(path, "Gma.System.MouseKeyHook.dll");
            Assembly.LoadFrom(path);

 

posted @ 2023-06-20 15:28  ShawBlack  阅读(200)  评论(0编辑  收藏  举报