Thursday, April 21, 2011

Navisworks Controls on 64 Bit

If you are running a 64 bit development environment like the rest of the world and have attempted to utilize the Navisworks ViewControl you have probably run into some rather annoying issues. This control will not work in a 64 bit environment at design time in your Visual Studio project, but behold... there is a workaround.

You will need a 32 bit OS where you can install the 32 bit version of Navisworks so you can steal the API dll references that you can use on your 64 bit OS for development. Or if you're super duper lazy, you can just download the one that I'm using and adjust all your Autodesk.Navisworks.Controls references to this 32 bit flavor of the dll for use at design time.

Download the 32 bit control DLL here. Hopefully Autodesk doesn't try to kick my ass for offering this file for download. But after all you can install a 30 day trial to keep this file forever, so no big whoop I guess.

When compiled, the control will work just fine on a 32 bit and 64 bit machine (just like it should otherwise).

3 comments:

Unknown said...

Hey

Slightly off topic, but I couldn't find your email on your blog.
Do you know where I can find more resources on the Navisworks API. Want to use the View Control in a WPF or WinForms application and capture mouse events. Any idea where to look?

Don said...

There is a WPF sample in C# that installs in the samples section under the .NET stuff (2012)...

C:\Program Files\Autodesk\Navisworks Manage 2012\api\net\examples\Basic Examples\CSharp\WPF\WPFViewer

Unknown said...

The WPF viewer is only a viewer. There are no events being captured? In the Winforms app I can't seem to capture mouse clicks events on the ViewControl? It is like the ViewControl is consuming any mouse click.

Post a Comment

Note: Only a member of this blog may post a comment.