如果用 dimObj.TextOverride可以修改,不过公差标注不上,请问怎么解决?
Dim xxbzObj As AcadDimAligned Dim point1(0 To 2) As Double Dim point2(0 To 2) As Double Dim location(0 To 2) As Double point1(0) = 100: point1(1) = 184.96: point1(2) = 0 point2(0) = 350: point2(1) = 184.96: point2(2) = 0 location(0) = 225: location(1) = 200: location(2) = 0 Set xxbzObj = ThisDrawing.ModelSpace.AddDimAligned(point1, point2, location) xxbzObj.ToleranceDisplay = acTolSymmetrical ThisDrawing.Application.ZoomAll xxbzObj.ToleranceLowerLimit = 0.15 xxbzObj.ToleranceUpperLimit = 0.05 xxbzObj.TextOverride = "{\Fgdt;n}500" ThisDrawing.Regen acAllViewports
这是程序,运行结果只有直径500,没有上下偏差,如何解决?
|