Inventor Apprentice and Design Assistant

Programming and macros
MMartens
Posts: 36
Joined: Wed Apr 28, 2021 10:01 am
Answers: 6
Location: Shawano, WI USA
x 6

Inventor Apprentice and Design Assistant

Unread post by MMartens »

I am familiar with the Solidworks Document Manager API and how to use it to perform API actions on files that aren't open in Solidworks. Apparently, Autodesk has something similar called Autodesk Inventor Design Assistant and its associated API which seems to be called Apprentice. I believe from what I have read, the Apprentice API is how Solidworks PDM is able to perform PDM actions on Inventor files.

Does anyone know where I should be able to locate the Apprentice API? I would like to use it on a project I am working on but have been unable to locate where the library is located.
by MMartens » Mon Mar 21, 2022 8:29 am
We already have both Inventor and Inventor View in our system. I was just trying to find the API library for it. As I was reading the using Apprentice Server article you sent, I came to the realization, based on their wording, the Apprentice API Library may actually a subset of the overall Inventor library. So I opened my object browser and sure enough. There it was.
image.png
Thanks for the help.
Go to full post
User avatar
bnemec
Posts: 1923
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2516
x 1387

Re: Inventor Apprentice and Design Assistant

Unread post by bnemec »

Usually these libs are from the vendor; Example Solidworks Doc Manager is downloaded from Solidworks. I think you'll need to get it from autodesk or find the .dll in your Inventor installation.

a little searching landed me to this, might be what you're looking for.

https://knowledge.autodesk.com/support/ ... -2021.html

https://help.autodesk.com/view/INVNTOR/ ... EEF821D50A
MMartens
Posts: 36
Joined: Wed Apr 28, 2021 10:01 am
Answers: 6
Location: Shawano, WI USA
x 6

Re: Inventor Apprentice and Design Assistant

Unread post by MMartens »

We already have both Inventor and Inventor View in our system. I was just trying to find the API library for it. As I was reading the using Apprentice Server article you sent, I came to the realization, based on their wording, the Apprentice API Library may actually a subset of the overall Inventor library. So I opened my object browser and sure enough. There it was.
image.png
Thanks for the help.
User avatar
bnemec
Posts: 1923
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2516
x 1387

Re: Inventor Apprentice and Design Assistant

Unread post by bnemec »

MMartens wrote: Mon Mar 21, 2022 8:29 am We already have both Inventor and Inventor View in our system. I was just trying to find the API library for it. As I was reading the using Apprentice Server article you sent, I came to the realization, based on their wording, the Apprentice API Library may actually a subset of the overall Inventor library. So I opened my object browser and sure enough. There it was.

image.png

Thanks for the help.
Sounds good. The Libs needed for managing Solid Edge files without starting Solid Edge or Design Manager (ie needing a license) are in the installation folder. Solidworks requires other hoop jumping to get Document Manager lib. I wasn't sure which route Inventor uses.
MMartens
Posts: 36
Joined: Wed Apr 28, 2021 10:01 am
Answers: 6
Location: Shawano, WI USA
x 6

Re: Inventor Apprentice and Design Assistant

Unread post by MMartens »

For those who may be searching...

When attempting to reference the Inventor dll in visual studio, it didn't show up in the COM library listings as I expected. I had to do a hard drive search for autodesk.inventor.interop.dll to find where it gets installed.
image.png
User avatar
bnemec
Posts: 1923
Joined: Tue Mar 09, 2021 9:22 am
Answers: 10
Location: Wisconsin USA
x 2516
x 1387

Re: Inventor Apprentice and Design Assistant

Unread post by bnemec »

MMartens wrote: Mon Mar 21, 2022 1:07 pm For those who may be searching...

When attempting to reference the Inventor dll in visual studio, it didn't show up in the COM library listings as I expected. I had to do a hard drive search for autodesk.inventor.interop.dll to find where it gets installed.
image.png
at the risk of being irrelevant I'll chance it and just mention a couple of pits I tend to fall in, repeatedly:
- check the bitness of your project (prefer 32bit is still default for VS 2019) as it must match the dll you're using. I lost many hours and a portion of my mind because of this when Solid Edge went to 64bit only at ST9.
- Also, most of the time these libraries cannot be embedded so in the project references you may want to keep unchecked the "Embed Interop Types" option. I don't fully grasp what all goes on for embedded or not, I just know that none of the CAD APIs I've worked with would work embedded.
- Although API help docs may be tough to follow at times, they're still the best place to start. I highly recommend finding the "Getting started with Inventor API" tutorial that mentions this library.
Post Reply