[求助]请问:为什么我用PolyLine画不出三维多段线
本帖最后由 作者 于 2008-9-28 19:41:53 编辑 <br /><br /> <p>Sub ThdPolyline()<br/> <br/> Dim Thplineobj As AcadPolyline<br/> Dim Thpoints(14) As Double<br/> <br/> <br/> '为三维顶点赋值<br/> Thpoints(0) = 50<br/> Thpoints(1) = 50<br/> Thpoints(2) = 100<br/> <br/> Thpoints(3) = 100<br/> Thpoints(4) = 50<br/> Thpoints(5) = 0<br/> <br/> Thpoints(6) = 150<br/> Thpoints(7) = 250<br/> Thpoints(8) = 150<br/> <br/> Thpoints(9) = 250<br/> Thpoints(10) = -50<br/> Thpoints(11) = 0<br/> <br/> Thpoints(12) = 350<br/> Thpoints(13) = 0<br/> Thpoints(14) = 150<br/> <br/> <br/> Set Thplineobj = ThisDrawing.ModelSpace.AddPolyline(Thpoints)<br/> <br/> ThisDrawing.Application.ZoomAll<br/> <br/> <br/>End Sub</p><p>2006,2007都试过了,都不对,不知道哪搞错,请高手指点.</p> <p>已解决,函数调用错误,应该用Add3DPoly函数。</p><p>不过既然AddPolyline画二维多段线何必设置三维数组呢。Z坐标没起到作用嘛。</p><p></p> AddPolyline的第三个参数不是Z坐标,而是高程 谢谢!多谢指教!
页:
[1]