Community
Navisworks API
Welcome to Autodesk’s Navisworks API Forums. Share your knowledge, ask questions, and explore popular Navisworks API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Define Full Lights when generating NWD

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
pascal_guillas
659 Views, 2 Replies

Define Full Lights when generating NWD

Hi,

 

we use Navisworks 2012.

We generate NWD files with FBX sources files using API, but when users open files, they have to select View -> Lighting -> "Full Light" for a correct exposed scene.

Is it possible to define this option with API code before saving NWD file ? or is there an option to set it by default in Navisworks 2012 ?

 

Thanks,

Pascal Guillas.

Tags (1)
2 REPLIES 2
Message 2 of 3
ulski1
in reply to: pascal_guillas

hi,

in the .net API you need to link to the old com api (add ref. to the comapi dlls) after that you can use the following:

 

using

ComApi = Autodesk.Navisworks.Api.Interop.ComApi;

using

ComApiBridge = Autodesk.Navisworks.Api.ComApi;

//link to COM API
ComApi.InwOpState10 state;
state = ComApiBridge.ComApiBridge.State;
state.CurrentView.ViewPoint.Lighting = ComApi.nwELighting.eLighting_FULL_LIGHTING;

 

 

Ulrik

Message 3 of 3

Thanks a lot !

 

It works fine.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report