<P>坐标属性是什么。。。。?</P>
<P> </P> <P><BR>Function XData()</P>
<P>Dim lineObj As AcadLine<BR>Dim startPt(0 To 2) As Double, endPt(0 To 2) As Double<BR>startPt(0) = 1#: startPt(1) = 1#: startPt(2) = 0#<BR>endPt(0) = 5#: endPt(1) = 5#: endPt(2) = 0#<BR>Set lineObj = ThisDrawing.ModelSpace.AddLine(startPt, endPt)<BR>ZoomAll</P>
<P>Dim xt, xd<BR>Dim datatype(1) As Integer, data(1)<BR>datatype(0) = 1001: data(0) = "myapp"<BR>datatype(1) = 1000: data(1) = "ÂÝË¿"<BR>lineObj.SetXdata datatype, data<BR>lineObj.getXData "myapp", xt, xd<BR>MsgBox xd(1)</P>
<P>End Function</P> 我在单位试验成功了,就是用 obj.setxdata方法,然后再getxdata,你看看帮助文档就可以了,不难。
页:
1
[2]