[求助]关于断面面积
<p>Pt(0) = 0: Pt(1) = (HS + h10(i)) / 2 + (i - 1) * ucs<br/> ThisDrawing.SendCommand "-Boundary" & vbCr & Pt(0) & "," & Pt(1) & vbCr & vbCr<br/> Set lwpLineObj = ThisDrawing.ModelSpace.Item(ThisDrawing.ModelSpace.Count - 1)<br/> S = lwpLineObj.Area<br/> lwpLineObj.Delete<br/> '写面积<br/> PMJ(0) = 4: PMJ(1) = -6 + h10(i) + (i - 1) * ucs: PMJ(2) = 0<br/> hMJ = 0.6<br/> deltah = h10(i) - HS<br/> If deltah > 0 Then<br/> Aw = Format(deltah, "0.000"): mtextmj = "Aw=" & S<br/> ElseIf deltah < 0 Then<br/> At = Format(Abs(deltah), "0.000"): mtextmj = "At=" & S<br/> End If<br/> ThisDrawing.ActiveLayer = courtlay4<br/> Set mjtext = ThisDrawing.ModelSpace.AddText(mtextmj, PMJ, hMJ)<br/> Next i</p><p>绘制横断面,面积是借用网上的,对某些部分不理解</p><p>逐行运行都可以的,总体运行就出错:</p><p>1、多段线并不删除</p><p>2、没有显示需要的数据,都是0</p><p>请各位指教!</p> <p>咋没人回答啊,我自己解决了。</p><p>1、用regen</p><p>2、用zoomwindow</p>
页:
[1]