Navisworks API

Navisworks API

Reply
New Member
clam2020
Posts: 1
Registered: ‎08-30-2012
Message 1 of 4 (250 Views)

Active X Clicked Events: Predefined vs Dynamic

250 Views, 3 Replies
08-30-2012 04:15 PM

Hello,

I am curious to know if there is a way to generate a link between an object in the model to some database information without having the link being predefined?  For example, as I am viewing my model on a website and click on a beam in the model I can have a defined link to show some information regarding that beam.  Is it possible to create that link through some UI on the webpage itself?

 

Thanks,

Chris

ADN Support Specialist
xiaodong.liang
Posts: 1,335
Registered: ‎06-12-2011
Message 2 of 4 (242 Views)

Re: Active X Clicked Events: Predefined vs Dynamic

09-03-2012 11:28 PM in reply to: clam2020

Hi,

 

The way I can think of is to monitor the mouse clicking event of the control, get the current selection, read the properties (if it stores the hyperlink info), or read the info from a database (if you have mapped the element with the info in the database), finally show the info.

 

But I still prefer to the predefined hyperlink attached to the elements. Thus the user can click the URL directly.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Contributor
tagbagz
Posts: 21
Registered: ‎03-13-2012
Message 3 of 4 (201 Views)

Re: Active X Clicked Events: Predefined vs Dynamic

12-04-2012 05:12 AM in reply to: xiaodong.liang

Hi

 

Would it be possible to show some example VBscript of how to get the properties from an object that has been clicked.

 

I too would be very interested in acccessing this information via a web browser.

 

Many Thanks

PM

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

Re: Active X Clicked Events: Predefined vs Dynamic

01-07-2013 09:46 PM in reply to: tagbagz

Hi,

 

here is a blog on how to use event of Navisworks ActiveX control within a web page.

http://adndevblog.typepad.com/aec/2012/08/enable-event-of-activex-control.html

 

As to getting object's property, I'd suggest you refer to the SDK sample in <Navisworks Manage 2012>\api\COM\examples\AUTO_06. It is a sample of automation, but the core code could be borrowed to the web page application, using VBS.



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.