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

发布时间 2023-06-20 15:31:40作者: ShawBlack
        Type type = typeof(HoleCreatorCommand);
            string path = Directory.GetParent(type.Assembly.Location).FullName;
            path = Path.Combine(path, "Gma.System.MouseKeyHook.dll");
            Assembly.LoadFrom(path);