Message 1 of 2
.NET API - cannot load the DLL files
Not applicable
05-22-2019
12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to use the API but every time I run my application, it comes up with the following errors depending on which "Platform target" option I choose.
This is my simple program:
using System;
using Autodesk.Navisworks.Api;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
Document doc = Autodesk.Navisworks.Api.Application.ActiveDocument;
Console.WriteLine(doc.Title);
}
}
}
The DLL files are located in "C:\Program Files\Autodesk\Navisworks Manage 2019" where I load them from. See below:
I tried to copy the files to a different folder - this does not help. I also have a full professional licence. Any ideas how to make this work?