Factory API Through Inventor

Factory API Through Inventor

gustavo.cassel
Advocate Advocate
254 Views
0 Replies
Message 1 of 1

Factory API Through Inventor

gustavo.cassel
Advocate
Advocate

Hi, i'm trying to build a windows forms app in .net core 7.

I'm referencing the Autodesk.Inventor.Interop.dll to get acess to Inventor's objects.

I'm getting the Inventor.Application through a Marshal object cast.

I also need to acess the Factory API as well, to read the assets properties in a assemblydocument.

But i'm getting an error when attempting to acess the Autodesk.Factory.PublicAPI.API.Instance object.

 

I have a inventor add-in and it can acess this 'Instance' object.

But my winform project just returns null in this object.

 

private static readonly FactoryCurrency.IFactoryAPI _factoryAPI;

static FactoryAPI()
{
    _factoryAPI = Autodesk.Factory.PublicAPI.API.Instance;
}

Can anyone help me with this?

0 Likes
255 Views
0 Replies
Replies (0)