新手求助,大家帮帮忙
<p><font face="Verdana">Private Sub CommandButton1_Click()<br/>Dim ass As AcadSelectionSet<br/>Dim ftype As Integer<br/>Dim fdata As String<br/>ftype = 0<br/>fdata = "TEXT"<br/>Set ass = ThisDrawing.SelectionSets.Add("ass")<br/>ass.Select acSelectionSetAll, , , ftype, fdata<br/>sco = ass.Count<br/>MsgBox "选中对象数:" & CStr(sco)<br/>End Sub</font></p><p><font face="Verdana">我想在选取图中的文字,怎么执行了没结果</font></p> <p><font face="Verdana">Private Sub CommandButton1_Click()<br/>Dim ass As AcadSelectionSet<br/>Dim ftype(0) As Integer<br/>Dim fdata(0) As <font face="Verdana">Variant</font></font></p>
<p><font face="Verdana">ftype(0) = 0<br/>fdata(0) = "TEXT"<br/>Set ass = ThisDrawing.SelectionSets.Add("ass")<br/>ass.Select acSelectionSetAll, , , ftype, fdata<br/>sco = ass.Count<br/>MsgBox "选中对象数:" & CStr(sco)<br/>End Sub</font></p> <p>谢谢二楼</p>
页:
[1]