lichh_2003 发表于 2004-11-1 09:23:00

求教:通过VB在CAD中绘制矩形用什么对象?

通过VB在CAD中绘制矩形用什么对象?


比如画线用:.addline


谢谢!

雪山飞狐_lzh 发表于 2004-11-1 09:34:00

AddLightweightPolyline方法

lichh_2003 发表于 2004-11-1 09:56:00

这样不行啊,画出来是一条很长的线

雪山飞狐_lzh 发表于 2004-11-1 18:38:00

Sub tttt()<BR>p1 = ThisDrawing.Utility.GetPoint<BR>p2 = ThisDrawing.Utility.GetPoint<BR>Dim pnts(7) As Double<BR>pnts(0) = p1(0): pnts(1) = p1(1)<BR>pnts(2) = p1(0): pnts(3) = p2(1)<BR>pnts(4) = p2(0): pnts(5) = p2(1)<BR>pnts(6) = p2(0): pnts(7) = p1(1)<BR>ThisDrawing.ModelSpace.AddLightWeightPolyline(pnts).Closed = True


End Sub<BR>
页: [1]
查看完整版本: 求教:通过VB在CAD中绘制矩形用什么对象?