请问如何在VB.NET下以COM方法跟CAD连结.取得选择集 目前程序如下 Dim Cad As Autodesk.AutoCAD.Interop.AcadApplication Cad = New Autodesk.AutoCAD.Interop.AcadApplication Dim Open_Cad_File As AcadDocument = Cad.Documents.Open("C:\0\0.dwg") Dim ssRev As Autodesk.AutoCAD.Interop.AcadSelectionSet Dim ssRevs As Autodesk.AutoCAD.Interop.AcadSelectionSets Dim FilterType(0 To 3) As Object Dim FilterData(0 To 3) As Object FilterType(0) = -4 FilterData(0) = "<AND" FilterType(1) = 1 FilterData(1) = "REV" FilterType(2) = 0 FilterData(2) = "TEXT" FilterType(3) = -4 FilterData(3) = "AND>" ssRevs = Cad.ActiveDocument.SelectionSets ssRev = Cad.ActiveDocument.SelectionSets.Add(“REV”) ssRev.Select(AcSelect.acSelectionSetAll, , , FilterType, FilterData) ←
Error:无效的自变量
FilterType (于
Select 中) 请问FilterType, FilterData 要如何处理? 谢谢. |