请问明总已知园的两端坐标和弧长计算半径和圆心坐标???
本帖最后由 作者 于 2009-9-1 18:15:23 编辑 <br /><br /> <p>请问!如何改变封闭线顶点的起点</p><p>比如原先1为起点,通过在图内选择,我想改变线的起点</p><p>如何做,用什么方法????谢谢</p> http://www.mjtd.com/object/acad2004/ex_coordinate.htm <p>我没有说清楚!线为封闭区域,线个顶点坐标不变,将起点更改为模型空间里选取点</p><p>如下图</p><p> </p> http://www.mjtd.com/object/acad2004/idh_coordinates.htm <p>再问一个问题,在输出封闭区域坐标的时候,如果有圆弧,怎么确定圆弧(起点,弧长,端点),我试了一下“凸度”没有搞明白,谢谢飞狐大侠!!</p><p>Sub test()<br/> Dim X As Double, y As Double, Z As Double<br/> Dim n As Long<br/> n = ThisDrawing.ModelSpace.Count</p><p> Dim Pt As Variant<br/> Pt = ThisDrawing.Utility.GetPoint(, "指定内部点: ")<br/> ThisDrawing.SendCommand "_-Boundary" & vbCr & Pt(0) & "," & Pt(1) & vbCr & vbCr</p><p> Dim lwpLineObj As AcadLWPolyline<br/> If ThisDrawing.ModelSpace.Count > n Then<br/> Set lwpLineObj = ThisDrawing.ModelSpace.Item(ThisDrawing.ModelSpace.Count - 1)<br/> 'MsgBox "面积" & Format(lwpLineObj.Area, "0.000") & "平方米"<br/> 'lwpLineObj.Delete<br/> Else<br/> MsgBox "未发现有效的边界"<br/> End If<br/> Dim i As Long, num As Long<br/> Dim retCoord As Variant<br/> num = 0<br/> retCoord = lwpLineObj.Coordinates<br/> num = (UBound(retCoord) - LBound(retCoord) + 1) / 2<br/> <br/> For i = 0 To num - 1<br/> X = retCoord(2 * i + 1)<br/> y = retCoord(2 * i)<br/> MsgBox ("X=" & X & " " & "Y=" & y)</p><p>怎么判断是圆弧,并把圆弧的数据读出??????????? 谢谢了<br/> Next i<br/>End Sub</p> http://bbs.mjtd.com/forum.php?mod=viewthread&tid=4022<br/>http://www.mjtd.com/object/acad2004/idh_getbulge.htm<br/> 请问明总已知园的两端坐标和弧长计算半径和圆心坐标??? 这个问题要放到几何算法版块去了。
页:
[1]