Hi,
As far as I know, there is not a way to export partial model (model items) to FBX. The way I can think of is:
1. hide other model items
2. find the plugin record of FBX
3. execute the plugin. Of course, the built-in dialog will pop out, then the end user has to manually click OK.
While when I tried this way, nothing happened after executing. I am investigating and will get back if I get any working code.
So, I worked it out. This is a blog:
http://adndevblog.typepad.com/aec/2017/03/navisworks-api-export-model-or-model-items-to-fbx-.html
thank you Xiaodong Liang - a lot of posters have been asking for this.
Hi,
this blog article is so helpful for me, thanks.
I would like to know more detail about "FBX export plugin parameters".
Is it possible to change the parameters for the FBX export plugin ("NativeExportPluginAdaptor_LcFbxExporterPlugin_Export.Navisworks")?
I would like to export FBX file as Text(ASCII).
I am using this code for the pugin:(It's same code with your blog)
NativeExportPluginAdaptor FBXplugin = FBXPluginrecord.LoadedPlugin as NativeExportPluginAdaptor;
FBXplugin.Execute("c:\\temp\\mytest1.fbx");
Thank you in advance for your time and effort.
Takahashi
Hello Xiaodong,
I have been looking through the 2019 sdk documentation and have been unable to find a class reference for the NativeExportPluginAdaptor. Can I ask for any additional information you may have on the class, or a link to online resources detailing the same?
Thanks,
r
Hi Xiaodong,
What is the reference required for NativeExportPluginAdaptor? Can't find anything in the documentation for Navisworks 2018 and it is showing as missing with Navisworks.Api.Plugins.
Another thing that is happening from your sample code, I never make it past this line:
if (FBXPluginrecord != null)
Two questions come up. 1) Is this code meant to run from inside an Addin Plugin or COM? and 2) When I've dealt with launching plugins from external applications before, I've always had to use Autodesk.Navisworks.Api.Application.Plugins.AddPluginAssembly(); to get the plugin to be found in the PluginRecord, else my PluginRecords Count is always 0.
I have the same problem. I would like to use 'AddPluginAssembly' to load 'NativeExportPluginAdaptor_LcDwfExporterPlugin_Export.Navisworks' but I can't figure out where the Plugin resides