- 积分
- 539
- 明经币
- 个
- 注册时间
- 2016-10-15
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Assembly asm = Assembly.LoadFile(@"D:\vsproject\CadBatch\CadBatch\libry\acdbmgd.dll");
Type t1 = asm.GetType("AcDbPlotSettings");
object oPubClass = Activator.CreateInstance(t1, new object[] { theLayout.ModelType });
MethodInfo oMethod = t1.GetMethod("getPlotPaperSize", BindingFlags.Instance | BindingFlags.NonPublic);
Point2d pntop = default(Point2d);
object result = oMethod.Invoke(oPubClass, new Object[] {&pntop.X, & pntop.Y });
Type object21 = result.GetType();
Object object22 = Marshal.PtrToStructure(plotSet.UnmanagedObject, asm.GetType("AcDbPlotSettings"));
|
|