Message 1 of 1
Factory API Through Inventor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?