尺寸线问题!!
为什么我在VB调用CAD绘图时那个标注时的尺寸线特别长!! <p> .................. </p><p> If Abs(point1(0) - point2(0)) > 0 Then<br/> '水平方向<br/> location(0) = HMaxy + conLabel - conD * i<br/> location(1) = HMaxy + conLabel - conD * i<br/> location(2) = HMaxy + conLabel - conD * i<br/> <br/> pt1(0) = point1(0)<br/> pt1(1) = HMaxy + conLabel - 0.6 * conD - conD * i<br/> pt1(2) = 0<br/> <br/> pt2(0) = point2(0)<br/> pt2(1) = HMaxy + conLabel - 0.6 * conD - conD * i<br/> pt2(2) = 0<br/> <br/> <font color="#113dee">Set dimObj = ThisDrawing.ModelSpace.AddDimRotated(pt1, pt2, location, 0)<br/></font> <br/> Set newText = ThisDrawing.TextStyles.Add("MYSTYLE")</p><p> newText.height = TextH ' 设定新样式的高度</p><p> ThisDrawing.Application.ZoomAll</p><p> ' 增加标注间隙的距离<br/> dimObj.TextGap = 4<br/> dimObj.TextColor = acRed<br/> dimObj.TextStyle = "MYSTYLE"</p><p> ThisDrawing.Regen acAllViewports<br/> <br/> End If</p><p>...........</p><p>标注函数中 端线长度是pt1 ,pt2到点 <font color="#113dee">location </font>x 或 y方向的差值大致相等;</p><p>可以通过改变pt1 和pt2 是x 或 y方向的值来控制端线长度</p> 虽然问题已解决了!!但还是要谢谢你!!!有劳了!
页:
[1]