Active X Clicked Events: Predefined vs Dynamic

Active X Clicked Events: Predefined vs Dynamic

Anonymous
Not applicable
1,205 Views
3 Replies
Message 1 of 4

Active X Clicked Events: Predefined vs Dynamic

Anonymous
Not applicable

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

0 Likes
1,206 Views
3 Replies
Replies (3)
Message 2 of 4

xiaodong_liang
Autodesk Support
Autodesk Support

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.

0 Likes
Message 3 of 4

Anonymous
Not applicable

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

0 Likes
Message 4 of 4

xiaodong_liang
Autodesk Support
Autodesk Support

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.

0 Likes