IAcadSelectionSet's method SelectOnScreen in Visual C++

IAcadSelectionSet's method SelectOnScreen in Visual C++

Anonymous
Not applicable
545 Views
9 Replies
Message 1 of 10

IAcadSelectionSet's method SelectOnScreen in Visual C++

Anonymous
Not applicable
IAcadSelectionSet's method SelectOnScreen has two parameters which can be
omited in VBA, but in Visual C++ the parameters must be filled, but how to
fill them?

The method is declared as follows:
void SelectOnScreen (const VARIANT& FilterType, const VARIANT& FilterData);


thanks a lot
0 Likes
546 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
did you try the arx group?
autodesk.autocad.objectarx

"nelson" wrote in message
news:0CB2F68EE9CBB77E2FCEEC634C6FFD72@in.WebX.maYIadrTaRb...

> in Visual C++
0 Likes
Message 3 of 10

Anonymous
Not applicable
"Mark Propst" wrote in message news:EA877D17D2174AF2AE9706C2C9E12619@in.WebX.maYIadrTaRb...
> did you try the arx group?
> autodesk.autocad.objectarx

Why? It has nothing to do with ObjectARX.

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


>
> "nelson" wrote in message
> news:0CB2F68EE9CBB77E2FCEEC634C6FFD72@in.WebX.maYIadrTaRb...
>
> > in Visual C++
>
>
0 Likes
Message 4 of 10

Anonymous
Not applicable
"nelson" wrote in message news:0CB2F68EE9CBB77E2FCEEC634C6FFD72@in.WebX.maYIadrTaRb...
> IAcadSelectionSet's method SelectOnScreen has two parameters which can be
> omited in VBA, but in Visual C++ the parameters must be filled, but how to
> fill them?

extern VARIANT vMissing;

V_VT(&vMissing) = VT_ERROR;
V_ERROR(&vMissing) = DISP_E_PARAMNOTFOUND;

Initialize this at program startup, and make it external,
then you can pass it in response to any method that takes
an optional param that you don't want to specify.

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


>
> The method is declared as follows:
> void SelectOnScreen (const VARIANT& FilterType, const VARIANT& FilterData);
>
>
> thanks a lot
>
>
0 Likes
Message 5 of 10

Anonymous
Not applicable
"Tony Tanzillo" wrote in message
news:D834AFE2C95E143C924D44BEB785763F@in.WebX.maYIadrTaRb...
> "Mark Propst" wrote in message
news:EA877D17D2174AF2AE9706C2C9E12619@in.WebX.maYIadrTaRb...
> > did you try the arx group?
> > autodesk.autocad.objectarx
>
> Why? It has nothing to do with ObjectARX.
>

well, since it was a c++ question, and objectarx group is where the c++
people might be, i didn't think it was *that* stupid of a suggestion...
but hey, that just shows what I don't know!
:-)~
0 Likes
Message 6 of 10

Anonymous
Not applicable
It's not really a 'c++' question, it's an ActiveX question.

The same q/a is valid for Delphi, and other ActiveX clients,
the only difference being the language used.

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


"Mark Propst" wrote in message news:529CCF8326E6C7881D84796A9A7AE41D@in.WebX.maYIadrTaRb...
>
> "Tony Tanzillo" wrote in message
> news:D834AFE2C95E143C924D44BEB785763F@in.WebX.maYIadrTaRb...
> > "Mark Propst" wrote in message
> news:EA877D17D2174AF2AE9706C2C9E12619@in.WebX.maYIadrTaRb...
> > > did you try the arx group?
> > > autodesk.autocad.objectarx
> >
> > Why? It has nothing to do with ObjectARX.
> >
>
> well, since it was a c++ question, and objectarx group is where the c++
> people might be, i didn't think it was *that* stupid of a suggestion...
> but hey, that just shows what I don't know!
> :-)~
>
>
0 Likes
Message 7 of 10

Anonymous
Not applicable
Tony Tanzillo wrote:
> It's not really a 'c++' question, it's an ActiveX question.

It's a question about ActiveX in C++. Mark was right to think that C++
programmers would have a better grip on this VBA programmers. After all,
few folks here have ever seen macros like V_VT let alone know how to
employ them.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
0 Likes
Message 8 of 10

Anonymous
Not applicable
Thanks, i didn't understand that!
:-)~

"Tony Tanzillo" wrote in message
news:BFB4E8C98733935A0C8DB461A0941015@in.WebX.maYIadrTaRb...
> It's not really a 'c++' question, it's an ActiveX question.
>
0 Likes
Message 9 of 10

Anonymous
Not applicable
It works perfectly, thanks again.
The usage should be provided in AutoCAD ActiveX Automation user's guide, but
it doesn't according to my knowledge. Actually the guide has few information
on languages other than VB.
0 Likes
Message 10 of 10

Anonymous
Not applicable
Visual Basic programmers don't need to concern themselves
with this, as it's completely transparent to them. For
other programming languages, it's a COM convention, and is
covered in the Microsoft COM specfications (which also
assumes C++)

--
AcadXTabs: Document Tabs for AutoCAD
http://www.acadxtabs.com


"nelson" wrote in message news:F615FDD026F1F2111379A2D6784D1279@in.WebX.maYIadrTaRb...
> It works perfectly, thanks again.
> The usage should be provided in AutoCAD ActiveX Automation user's guide, but
> it doesn't according to my knowledge. Actually the guide has few information
> on languages other than VB.
>
>
0 Likes