Public Sub VPCoords(vp As AcadPViewport, LL, ur) Dim min, max, oldMode As Boolean vp.GetBoundingBox min, max oldMode = ThisDrawing.MSpace ThisDrawing.MSpace = True LL = ThisDrawing.Utility.TranslateCoordinates(min, acPaperSpaceDCS, acDisplayDCS, False) ur = ThisDrawing.Utility.TranslateCoordinates(max, acPaperSpaceDCS, acDisplayDCS, False) ThisDrawing.MSpace = oldMode End Sub 请参照这个 |