VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reg. Selection Set Error

1 REPLY 1
Reply
Message 1 of 2
dhimant.bhensdadia
387 Views, 1 Reply

Reg. Selection Set Error

                AcadDocument acadDoc = acadAppl.Documents.Open(@"C:\Users\testdwg");

 

                AcadSelectionSet sset = null;

 

                sset = acadDoc.SelectionSets.Add("TEST");

                object[] FilterType = new object[1];
                object[] FilterData = new object[1];

 

                FilterType[0] = 0;
                FilterData[0] = "TEXT";

                sset.SelectOnScreen(FilterType, FilterData);

 

I have written the above code snippet for Selecting Only text by SelectOnScreen, but in this I am getting the error that "Invalid Argument FilterType In Select On Screen"

1 REPLY 1
Message 2 of 2

Hi,

 

Have you tried defining Filtertype as integer and Filterdata as variant?

 

Kind regards,

 

Wouter

 

Kind regards

Wouter

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost