Message 1 of 7
Navisworks accessing ActiveDocument from Automation API
Not applicable
06-04-2013
10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems that the only way to get access to the power of the Autodesk.Navisworks.Api from Autodesk.Navisworks.Api.Automation is by calling a plugin. This requires the plugin to be created, compiled and deployed through a separate VS project. Is there another way? I would like to be able to do something like this:
NavisworksApplication automationApplication = new Autodesk.Navisworks.Api.Automation.NavisworksApplication();
automationApplication.OpenFile("c:\\myModel.nwd");
Autodesk.Navisworks.Api.Application.ActiveDocument.SaveFile("c:\\myMode_2010l.nwd", DocumentFileVersion.Navisworks2010);The above code fails because the ActiveDocument is not set.
Thanks