[求助]如何实现给定范围的窗口缩放?
Point2d pt1 = new Point2d(20700, 3600);<br/> Point2d pt2 = new Point2d(21500, 4300);<br/> <br/> Point2dCollection ptSet = new Point2dCollection(); <br/> ptSet.Add(pt1);<br/> ptSet.Add(pt2);<br/><br/> Point2d[] aa = new Point2d;<br/> ptSet.CopyTo(aa, 0);<br/> object[] bb = new object;<br/> bb = aa;<br/> bb = aa;<br/><br/> object app = Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;<br/> Type acApp = Type.GetTypeFromHandle(Type.GetTypeHandle(app));<br/> acApp.InvokeMember("ZoomWindow", BindingFlags.InvokeMethod, null, app, bb);//参数 窗口缩放 <br/><br/> 打算根据给定窗口角点坐标实现窗口缩放,代码执行总是出现问题,“值不在预期的范围内”,请各位高手指点!<br/> Com库的点是double数组而不是Point2d
页:
[1]