Navisworks API

Reply
Member
johncondron
Posts: 5
Registered: ‎07-24-2012
Message 1 of 5 (895 Views)

Navisworks ActiveX Control

895 Views, 4 Replies
07-24-2012 02:17 AM

Hi,

 

I've been using the 2013 Navisworks Redistributable Active X Control within a C# Asp.Net page, which I've managed to do.  But I'm having some problems when trying to add controls to select a different .nwd file to view.

 

I've created a dropdown list and use some Javascript to set my control source (mycontrol.src) to a selected file.  But when the function is fired I get an error saying the control is undefined.

 

Seems strange as within Visual Studio the control is accessible and all the intellisense is available.

 

Has anyone done anything similar, or have any advice?

 

For the record, I had no idea what Navisworks was until a few days ago!

 

Incidentally, for anyone else looking to do the same Xiaodong Liang has some really helpful posts here http://adndevblog.typepad.com/aec/2012/05/navisworks-activex-controls.html

 

Thanks in advance for any assistance.

 

John

ADN Support Specialist
xiaodong.liang
Posts: 1,303
Registered: ‎06-12-2011
Message 2 of 5 (863 Views)

Re: Navisworks ActiveX Control

08-02-2012 12:27 AM in reply to: johncondron

Hi John,

 

This is the first time I heard such issue. I am intersted in giving a test. Could you tell me which Redis control you are using , SDI or MDI? In addition, are you running locally or you have published it to server?



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
johncondron
Posts: 5
Registered: ‎07-24-2012
Message 3 of 5 (859 Views)

Re: Navisworks ActiveX Control

08-02-2012 03:38 AM in reply to: xiaodong.liang

Hi Xiaodong,

 

I think maybe this was my misunderstanding of activex controls.  I think the problem was I was trying to access the control and pass parameters using Javascript.

 

I think though that there is no real point in making an asp.net page for the redistributable ActiveX, would you agree?

 

If it's only possible to access the control using vbscript anyway, then a simple html page with vbscript is all you can do it would seem?

 

I think if we can somehow use the Integrated API within a silverlight application we could make something useful.

 

I would be very interested in your thoughts.

 

Thanks...

 

John

 

 

ADN Support Specialist
xiaodong.liang
Posts: 1,303
Registered: ‎06-12-2011
Message 4 of 5 (853 Views)

Re: Navisworks ActiveX Control

08-03-2012 03:14 AM in reply to: johncondron

Hi John,

 

I do not think this problem you reported is related with the difference of Redis and Intergrated control. If you would like to know more of them, please refer to these blogs:

 

http://adndevblog.typepad.com/aec/2012/05/navisworks-activex-controls.html

http://adndevblog.typepad.com/aec/2012/05/web-server-with-navisworks-activex-control.html

 

-  making an asp.net page for the redistributable ActiveX

   I think it is OK. I vaguely remember I did so in the past.

 

- access the control using vbscript only?

   Javascript is also supported. e.g. this blog demos:

   http://adndevblog.typepad.com/aec/2012/05/search-compnents-in-javascript.html

 

- use the Integrated API within a silverlight application

  sorry i have not an info at this moment

 



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Member
johncondron
Posts: 5
Registered: ‎07-24-2012
Message 5 of 5 (850 Views)

Re: Navisworks ActiveX Control

08-03-2012 03:28 AM in reply to: xiaodong.liang

Hi Xiaodong,

 

Thank you very much for your reply.  I will look at those links and report back with how I get on.

 

Thanks once again...

 

John

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.