请问:为什么选择个数是0??
<P>请问:为什么选择个数是0??而再次调用选择个数为1呢??</P><P>如:Sub sel()<BR>Dim p1(0 To 2) As Double<BR> Dim p2(0 To 2) As Double<BR> Dim x As Integer<BR>p1(0) = 100: p1(1) = 100: p1(2) = 0: p2(0) = 500: p2(1) = 500: p2(2) = 0<BR>Call ThisDrawing.ModelSpace.AddLine(p1, p2)<BR>Dim sel As AcadSelectionSet<BR>Set sel = ThisDrawing.SelectionSets.Add("Objs")<BR>sel.Select acSelectionSetWindow, p1, p2<BR>x = sel.Count<BR>MsgBox (x)<BR>sel.Delete<BR>End Sub</P>
<P>运行结果x=0;再运行一次x=1,再运行一次x=2</P>
<P>怎样能第一次就选中这条直线!!!</P>
<P>请教:怎样用矩形窗口选择自己所画的对象???</P>
<P>请各位兄台帮忙!!!</P> <P>请帮忙!!!谢谢!!!</P> <P>选择之前调用直线的Update方法</P> <P>谢谢!!!</P>
页:
[1]