SetBulge设置多段线在给定索引位置的凸度
本帖最后由 作者 于 2007-12-21 21:24:09 编辑 <br /><br /> <p class="Heading-2">SetBulge语法 来源<a href="http://www.mjtd.com/object/acad2004/idh_setbulge.htm">http://www.mjtd.com/object/acad2004/idh_setbulge.htm</a></p><p class="Heading-2">在AcadPolyline中有type项,在AcadLWPolyline无Type项</p><p class="Heading-2">在AcadLWPolyline中可以用GetBulge,获得凸度</p><p class="Heading-2">在AcadPolyline中有type项,Object.Type=0时可以用GetBulge,获得凸度。</p><p class="Bullet2">AcadLWPolyline 的属性 -----无TYPE项<a href="http://www.mjtd.com/object/acad2004/idh_application.htm"><p class="body"></p></a></p><p class="body"></p><p class="body"></p><p class="Heading-2">在AcadPolyline 属性 -------中有TYPE项,如果type=0 (<table class="Simple"><tbody><tr valign="top"><td><p class="constant">acSimplePoly</p></td><td><p class="constant-desc">简单多段线)</p></td></tr></tbody></table><a href="http://www.mjtd.com/object/acad2004/idh_application.htm"><p class="body"><a href="http://www.mjtd.com/object/acad2004/idh_type.htm"><p class="body">Type ----------------------------------此项是凸度的关键要素<a href="http://www.mjtd.com/object/acad2004/idh_visible.htm"></a></p></a></p></a></p><p class="body"><a href="http://www.mjtd.com/object/acad2004/idh_type.htm"><p class="body">Type ----------------------------------此项是凸度的关键要素<a href="http://www.mjtd.com/object/acad2004/idh_visible.htm"></a></p></a></p><p class="body">Type ----------------------------------此项是凸度的关键要素<a href="http://www.mjtd.com/object/acad2004/idh_visible.htm"></a></p><p class="body"></p> 本帖最后由 作者 于 2007-12-21 23:23:11 编辑 <br /><br /> <p>Sub ls()<br/> Dim Pl As AcadLWPolyline, Ppl As AcadPolyline, PpLl As AcadPolyline<br/> Dim Ent As AcadEntity<br/> Dim aa() As Double, bb() As Integer<br/> Dim plineObj As AcadLWPolyline<br/> Set Ppl = ThisDrawing.HandleToObject("87")</p><p> ReDim aa(0 To UBound(Ppl.Coordinates)) As Double<br/> For jj = 0 To UBound(Ppl.Coordinates)<br/> aa(jj) = Ppl.Coordinates(jj)<br/> Next jj</p><p> Set PpLl = ThisDrawing.ModelSpace.AddPolyline(aa)<br/> PpLl.color = acRed</p><p> ThisDrawing.SendCommand "_Pedit" & vbCr & "l" & vbCr & "f" & vbCr & vbCr<br/> <br/> Debug.Print<br/>End Sub<br/></p>
页:
[1]