Using RxInventor.tlb in Inventor 2019

Using RxInventor.tlb in Inventor 2019

oransen
Collaborator Collaborator
807 Views
2 Replies
Message 1 of 3

Using RxInventor.tlb in Inventor 2019

oransen
Collaborator
Collaborator

This is not a question but a hint to any of the other 5 or 6 people using the Inventor C++ COM API.

 

I've found that in order to compile properly inside InventorUtils.H I had to change the line which starts like this...

 

#import "RxInventor.tlb" no_namespace...

 

... to start like this...

 

#import "C:\Program Files\Autodesk\Inventor 2019\Bin\RxInventor.tlb" no_namespace...

 

...even though I had the correct search path in my VC project settings.

 

Hell, the next time I'm going to use C# !

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

YuhanZhang
Autodesk
Autodesk

You're right, it should use full path for the TLB. But if you get the InventorUtils.h from the folder(C:\Users\Public\Documents\Autodesk\Inventor 2019\SDK\DeveloperTools\Include) after installing the DeveloperTools.msi then the full path for the RxInventor.tlb will be set for it already, this is done in the installer, the installer will run a script to do this. If you don't see the full path after installing the installer then seems there is a problem there. Did you run the installer with admin account?

 

Below is what I see after installing the DeveloperTools:

TLB.png



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
Message 3 of 3

oransen
Collaborator
Collaborator
Accepted solution

Hello @YuhanZhang ,

 

Thanks for replying.

 

Note that there are two versions of DeveloperTools.msi, one for older compilers, and I used that older one.

 

After the installation there was no path in the InventorUtils.h, it took me quite some time to find out the problem.

 

Yes, I always run as admin.

 

All the best

 

Owen

 

0 Likes