VB.Net & Interaction Events

VB.Net & Interaction Events

NachoShaw
Advisor Advisor
832 Views
3 Replies
Message 1 of 4

VB.Net & Interaction Events

NachoShaw
Advisor
Advisor

Hi

 

I am currently using the Interaction Event & clsSelect class from the API. In VBA, it works perfectly but in VB.Net, it doesn't behave the same......

 

I am collection a mouse point click. In VBA, I get a prompt message & views / curves will highlight as my mouse passes over them. In VB.Net, this is different.

 

Option 1.

I can move my mouse around with my text prompt but nothing highlights. No views, Edges, curves, nothing. (becomes awkward when I want to attach something to an edge.

 

Option 2.

I can use 'PointInferenceEnabled = True'. This then allows the views / edges to highlight as my mouse moves over them but.... I lose the text prompt...

 

So, what am I doing wrong? I have ttried turning on SelectEvents, Turning off SelectEvents, Tried SingleSelection, Turned that off too. Pretty much everything I feel has been tried but its not working as it should (or at least as I think it should).

 

what is the method? does anyone have a VB.Net version of the interaction events that works as it should? I'd be most grateful 🙂

 

I have attached 2 small videos to demonstrate. Video VBA version shows how it should behave, Video VB.Net version shows how it doesn't behave correctly. Both versions have pretty much the same coding except the the VB.Net has the correct full declarations.

 

 

 

 

Cheers

 

Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
833 Views
3 Replies
Replies (3)
Message 2 of 4

BromanSillito
Advocate
Advocate

I'm not sure if this will help, but I have noticed with my vb.net programs that if you are using a "Transaction" that it turns off the highlighting. I had to remove the transaction from some of my code to stop it from turning off the highlighting. 

0 Likes
Message 3 of 4

NachoShaw
Advisor
Advisor
Hi

I'm not using any type of transaction or anything else except a mouse event as im getting the mouse point. What's odd though is that it works fine in vba but not in vb.net......

Cheers for the reply


Nacho

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 4 of 4

NachoShaw
Advisor
Advisor

ok....

 

So I guess I'm going to have to accept that the VBA API does NOT work / behave in the same was as the vb.net api even though it should...

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes