FBX

Anonymous

FBX

Anonymous
Not applicable

Hi, is posible to export a model item in fbx with an API?

 

Thanks

Reply
1,057 Views
8 Replies
Replies (8)

xiaodong_liang
Autodesk Support
Autodesk Support

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.

xiaodong_liang
Autodesk Support
Autodesk Support

ulski1
Collaborator
Collaborator

thank you Xiaodong Liang - a lot of posters have been asking for this.

 

 

0 Likes

Anonymous
Not applicable

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

 

0 Likes

Anonymous
Not applicable

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

 

 

matthew_conwayN7C2G
Enthusiast
Enthusiast

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.

matthew_conwayN7C2G
Enthusiast
Enthusiast

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.

 

 

wayne.helleyY67EK
Enthusiast
Enthusiast

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

0 Likes