请问AddLightWeightPolyline(points)中,points数组一定只能设置为double型吗?
<p>Dim points(0 To 9) As <font color="#ff0000">Variant </font></p><p>这样定义程序无法运行出错?</p><p>points数组一定只能设置为double型吗?</p><p><font color="#ff0000"><br/></font></p><p>Sub Example_AddLightWeightPolyline1()<br/> ' This example creates a lightweight polyline in model space.<br/> <br/> Dim plineObj As AcadLWPolyline<br/> Dim points(0 To 9) As <font color="#ff0000">Variant<br/></font> <br/> ' Define the 2D polyline points<br/> points(0) = 1: points(1) = 1<br/> points(2) = 1: points(3) = 2<br/> points(4) = 2: points(5) = 2<br/> points(6) = 3: points(7) = 2<br/> points(8) = 4: points(9) = 4<br/> <br/> ' Create a lightweight Polyline object in model space<br/> Set plineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(points)<br/> ZoomAll<br/> <br/>End Sub<br/></p> <p>是这样的,必需是Double类型的。这个在帮助文档里面有说明的。</p> 烟雨.江南发表于2007-5-31 8:03:00static/image/common/back.gif是这样的,必需是Double类型的。这个在帮助文档里面有说明的。<p class="element">恩,谢谢了</p><p class="element">我在帮助文档中找到这个说明了</p><p class="element">我还以为它说支持<font color="#000000">Variant呢,我的英语太菜了~~~</font><br/><br/></p><p class="element">VerticesList</p><p class="element-desc">Variant (array of doubles)<br/></p>
页:
[1]