|
发表于 2002-9-28 19:40:00
|
显示全部楼层
Dim minExt As Variant
Dim maxExt As Variant
If ssetobj.Item(Me.MSHFlexGrid1.Row - 1).ObjectName = "AcDbBlockReference" Then
ThisDrawing.Application.ZoomCenter ssetobj.Item(Me.MSHFlexGrid1.Row - 1).InsertionPoint, 40
Else
ssetobj.Item(Me.MSHFlexGrid1.Row - 1).GetBoundingBox minExt, maxExt
ThisDrawing.Application.ZoomWindow minExt, maxExt
ThisDrawing.Application.ZoomScaled 0.5, acZoomScaledRelative
End If |
|