求教:通过VB在CAD中绘制矩形用什么对象?
通过VB在CAD中绘制矩形用什么对象?比如画线用:.addline
谢谢! AddLightweightPolyline方法 这样不行啊,画出来是一条很长的线 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]