Buttons in TriadEvents MiniToolBar NOT responding after converting code from VBA to VB.NET

Buttons in TriadEvents MiniToolBar NOT responding after converting code from VBA to VB.NET

liminma8458
Collaborator Collaborator
584 Views
2 Replies
Message 1 of 3

Buttons in TriadEvents MiniToolBar NOT responding after converting code from VBA to VB.NET

liminma8458
Collaborator
Collaborator

Hi,

I am creating code to use TriadEvents on a purpose to precisely move a sketch3Dpoint in a sweep. The code performs well in VBA. Then I convert it to VB.NET.

In VB.NET,  at MiniToolBar, I want to click "tick" (to accept), or "apply", or "cancel", they are NOT responding. I have to right click the screen then use context menu buttons to complete it.

Does anyone know why and the fix?

Attached are the VBA and VB.NET code, also a video to demo it.

Capture_sketch3Dpoint.PNG

 

 

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
Accepted solutions (1)
585 Views
2 Replies
Replies (2)
Message 2 of 3

liminma8458
Collaborator
Collaborator

I also attach the models here for test

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
Message 3 of 3

YuhanZhang
Autodesk
Autodesk
Accepted solution

In Inventor SDK there is a VB.net sample for this, you can just reuse the code:

 

1. Install the DeveloperTools.msi in C:\Users\Public\Documents\Autodesk\Inventor 2021\SDK\. You can change the path if you have a different Inventor version.

2. Then you can find the sample: C:\Users\Public\Documents\Autodesk\Inventor 2021\SDK\DeveloperTools\Samples\VB.NET\Standalone Applications\Inventor\UserInteraction. 

 

Hope this helps.



If this solves the problem please click ACCEPT SOLUTION so other people can find it easily.



Rocky Zhang
Inventor API PD
Manufacturing Solutions
Autodesk, Inc.

0 Likes