Sub test() Dim dim1 As AcadDimAligned Dim a(2) As Double, b(2) As Double On Error Resume Next ThisDrawing.Utility.GetEntity dim1, pt, "选一个水平放置的对齐标注"
a(0) = dim1.ExtLine1Point(0): a(1) = dim1.ExtLine1Point(1) + 500: a(2) = 0 b(0) = dim1.ExtLine2Point(0): b(1) = dim1.ExtLine2Point(1) + 500: b(2) = 0 dim1.ExtLine1Point = a dim1.ExtLine2Point = b dim1.Update End Sub
以上功能只是想把一个水平放置的对齐标注的标注原点上移500,请先画一根直线跟在这个标注的尺寸线重合以作参照,然后再运行这个宏,奇怪的事情发生了,标注原点是上移了,但尺寸线却跟参照直线分离了,这说明尺寸线发生了位移,为什么会这样呢?好奇怪啊!请各位老大帮帮忙啊!