[求助]帮我看看这段代码(关于筛选选择的东东)
<P> dim aCADapp As AcadApplication 'AutoCAD 的application对象<BR> dim aCADdoc As AcadDocument 'AutoCAD document对象<BR> Dim sset As AcadSelectionSet</P><P> Set aCADapp = GetObject(, "autoCAD.application")<BR> Set aCADdoc = aCADapp.ActiveDocument<BR> aCADapp.Visible = True '此语句是使CAD可见。<BR> Set sset = aCADdoc.SelectionSets.Add("SelectText")<BR> Dim FilterType As Integer, FilterData As String<BR> FilterType = 0<BR> FilterData = "TEXT"<BR> sset.SelectOnScreen<BR> 'sset.SelectOnScreen FilterType, FilterData</P>
<P>以上是我的代码,意思是只想选择文字的内容,但在实际运行时只能用"sset.SelectOnScreen",而在用"sset.SelectOnScreen FilterType, FilterData"就出错.</P>
<DIV>dim filtertype(0) as integer</DIV>
<DIV>dim filterdata(0) as variant</DIV>
<DIV>FilterType (0)= 0<BR> FilterData (0)= "TEXT"<BR>试试</DIV> 终于搞定了,谢谢楼上的兄弟.
页:
[1]