请教高手,改动以下代码,使之做体积的查询
Sub test()<BR> Dim n As Long<BR> n = ThisDrawing.ModelSpace.Count<BR> Dim Pt As Variant<BR> Pt = ThisDrawing.Utility.GetPoint(, " 指定内部点")<BR> ThisDrawing.SendCommand "_-Boundary" & vbCr & Pt(0) & "," & Pt(1) & vbCr & vbCr<BR> Dim lwpLineObj As AcadLWPolyline<BR> If ThisDrawing.ModelSpace.Count > n Then<BR> Set lwpLineObj = ThisDrawing.ModelSpace.Item(ThisDrawing.ModelSpace.Count - 1)<BR> MsgBox lwpLineObj.Area<BR> lwpLineObj.Delete<BR> Else<BR> MsgBox "未发现有效的边界"<BR> End If<BR>End Sub<BR> 查询体积直接使用Volume属性就可以查询得到。 我是新手,烦请老师写一段简单的代码,谢谢!!!
页:
[1]