关于选择集的问题
<p><font face="Verdana"> Dim acadApp As AcadApplication = CType(Application.AcadApplication, AcadApplication)<br/> Dim SSText As AcadSelectionSet<br/> Dim FilterType(0) As Short<br/> Dim FilterData(0) As Object<br/> Dim i As Integer</font></p><p><font face="Verdana"> FilterType(0) = 0<br/> FilterData(0) = "*TEXT"</font></p>
<p><font face="Verdana"> SSText = acadApp.ActiveDocument.SelectionSets.Add("text")<br/> SSText.SelectOnScreen(FilterType, FilterData)</font></p>
<p> </p>
<p>此代码在类模块下可以,为何在窗体下不好用呢?</p>
页:
[1]