用COM(VB.NET)与CAD连结的选择集过滤间题
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;">请问如何在VB.NET下以COM方法跟CAD连结.取得选择集<br/>目前程序如下<br/>Dim Cad As Autodesk.AutoCAD.Interop.AcadApplication <br/>Cad = New Autodesk.AutoCAD.Interop.AcadApplication<br/>Dim Open_Cad_File As AcadDocument = Cad.Documents.Open("C:\0\0.dwg")<br/>Dim ssRev As Autodesk.AutoCAD.Interop.AcadSelectionSet<br/>Dim ssRevs As Autodesk.AutoCAD.Interop.AcadSelectionSets<br/>Dim FilterType(0 To 3) As Object <br/>Dim FilterData(0 To 3) As Object <br/>FilterType(0) = -4<br/>FilterData(0) = "<AND"<br/>FilterType(1) = 1<br/>FilterData(1) = "REV"<br/>FilterType(2) = 0 <br/>FilterData(2) = "TEXT" <br/>FilterType(3) = -4 <br/>FilterData(3) = "AND>"<br/>ssRevs = Cad.ActiveDocument.SelectionSets<br/>ssRev = Cad.ActiveDocument.SelectionSets.Add(“REV”)<br/>ssRev.Select(AcSelect.acSelectionSetAll, , , FilterType, FilterData) ←Error:无效的自变量
FilterType (于
Select 中)<br/>请问FilterType, FilterData 要如何处理?<br/>谢谢. <span style="mso-spacerun: yes;"> </span></p> <p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;">没人帮忙处理<p></p></p>是我的问题写的不太明白吗? <p>已经解释很多遍了</p>
<p>Dim FilterType(0 To 3) As Short</p>
页:
[1]