Using SelectOnScreen

Using SelectOnScreen

Anonymous
Not applicable
358 Views
2 Replies
Message 1 of 3

Using SelectOnScreen

Anonymous
Not applicable
I’ve seen the following VB-code:
------
Dim oSel As AcadSelectionSet
oSel.SelectOnScreen
------

When I made wrapperclasses for AcadSelectionSet I found the following member:
void IAcadSelectionSet::SelectOnScreen(const VARIANT& FilterType, const VARIANT& FilterData)

my Q is about those two VARIANT args. What should they bee filled width? Where could I find the answer?

Thanks
0 Likes
359 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi,
you need some information about how to use COM and how to change VB code 
into C++ code.
There is an article in the MSDN Library about ADO Programming where you 
find some info.
( Data Access/Reference/Mirocsoft ActiveX Data Objects(ADO)/ ADO 
Programmers Guide/Appendices/Appendix C: Using ADO with ...C++/Visual 
C++ ADO Programming)
Regards, Petra

d00_ape wrote:

> I’ve seen the following VB-code:
> ------
> Dim oSel As AcadSelectionSet
> oSel.SelectOnScreen
> ------
> 
> When I made wrapperclasses for AcadSelectionSet I found the following member:
> void IAcadSelectionSet::SelectOnScreen(const VARIANT& FilterType, const VARIANT& FilterData)
> 
> my Q is about those two VARIANT args. What should they bee filled width? Where could I find the answer?
> 
> Thanks
0 Likes
Message 3 of 3

Anonymous
Not applicable
You must look in on-line help of Autocad under ? you find developer guide. Look in explanation of VBA. the first variant if a arrari of short tht contain the dxf number and the other array if a onject array that must have the same number of elements . example : dim grouptype(1) as short dim groupdata(1) as object grouptype(0)=8 groupdata(0)="mylayer,yourlayer" grouptype(1)=0 groupdata(1)="Line,Arc" SelectOnScreen(grouptype(),groupdata()) in this case you can select only line and arc on layer "mylayer" or layer "Yourlayer" Ciao Gpaolo select "d00_ape" ha scritto nel messaggio news:[email protected]... > I've seen the following VB-code: > ------ > Dim oSel As AcadSelectionSet > oSel.SelectOnScreen > ------ > > When I made wrapperclasses for AcadSelectionSet I found the following member: > void IAcadSelectionSet::SelectOnScreen(const VARIANT& FilterType, const VARIANT& FilterData) > > my Q is about those two VARIANT args. What should they bee filled width? Where could I find the answer? > > Thanks
0 Likes