DriveIOPlugin internal names

DriveIOPlugin internal names

codigem_help
Observer Observer
666 Views
2 Replies
Message 1 of 3

DriveIOPlugin internal names

codigem_help
Observer
Observer

Dear All, 

 

I have found the following code to export viewpoints XML report,

which requires internal name input, in this case XmlViewpointsExportPlugin.

 

How to obtain full list of internal names? For example internal name for viewpoints HTML report ecport? 

 

Autodesk.Navisworks.Api.Interop.ComApi.InwOaPropertyVec options = comState.GetIOPluginOptions("XmlViewpointsExportPlugin");

 

Autodesk.Navisworks.Api.Interop.ComApi.nwEExportStatus status = comState.DriveIOPlugin("XmlViewpointsExportPlugin", @"C:\testExport.xml", options);

 

Thank you 

 

0 Likes
667 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @codigem_help ,

 

The COM API is outdated, so I'm not familiar with its approach, but I can assist you in obtaining the list via the .NET API.


Below is the code you can use to retrieve the list:

Document doc = Autodesk.Navisworks.Api.Application.ActiveDocument;
IList<PluginRecord> pluginRecords= Autodesk.Navisworks.Api.Application.Plugins.PluginRecords;
string s = "";
foreach (PluginRecord pluginRecord in pluginRecords)
{
    s = s + "\n" + pluginRecord.Id;
}

If you wish to utilize a particular plugin, you can refer to the steps outlined in the link provided below.
https://adndevblog.typepad.com/aec/2017/03/navisworks-api-export-model-or-model-items-to-fbx-.html 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

Mateusz.LukasiewiczW6NRZ
Contributor
Contributor

Hello,

 

In my exploration of a related topic few years ago, I came across the following code snippet for exporting HTML viewpoint reports:

 

PluginRecord HtmlReportExport = Autodesk.Navisworks.Api.Application.Plugins.FindPlugin("NativeExportPluginAdaptor_XmlViewpointsReportExportPlugin_Export.Navisworks");

 

Regards,

Mateusz

0 Likes