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: 

Forge Viewer click event not working

1 REPLY 1
Reply
Message 1 of 2
Anonymous
495 Views, 1 Reply

Forge Viewer click event not working

Hi,
We have implemented the Autodesk Forge Viewer in our web application. We have displayed the Navisworks file in Forge Viewer.
On clicking the particular element/object in forge viewer, we need to get the Object ID of selected element.
We will use this Object ID for multiple purpose (like zooming, etc) in our application.
For this we have used the below selection changed event in our page but the below event is not working.

EventsTutorial.prototype.onSelectionEvent = function(event)
{
var currSelection = this.viewer.getSelection();
var domElem = document.getElementById('MySelectionValue');
domElem.innerText = currSelection.length;
};
 
Kindly help us to resolve this issue.
1 REPLY 1
Message 2 of 2
ulski1
in reply to: Anonymous

hi,

you are posting to the Navisworks API forum. The issue you refer to is related to a javascript manipulating dom in a Force webpage and that has nothing to do with the Navisworks API directly. I think you will get more response to your question if you ask it on the Forge forum.

br

Ulrik

 

 

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

Post to forums  

Rail Community


 

Autodesk Design & Make Report