-1

I have object tree view on left side of my viewer, now am looking to establish an association with the markups drawn on the viewer, for example if click on wall object, it should focus me that particular wall object along with the markups there and also should hide other markups in that viewer. So it's making easy for user to see all those associated markups in that wall only. Is this doable?

Thanks in advance

A DEv
  • 255
  • 1
  • 19

2 Answers2

0

This markup extension example should show you how to do, at least, part of what you are looking for: https://github.com/apprentice3d/ForgeViewerExtensions

Jeremy
  • 357
  • 1
  • 6
0

it should focus me that particular wall object along with the markups there and also should hide other markups in that viewer.

Try control the visibility of a markup with:

markupExt.markups[index].shape.style.display='none/block'

And to add markups to the position of a particular node follow here: https://forge.autodesk.com/blog/placing-custom-markup-dbid

Bryan Huang
  • 5,247
  • 2
  • 15
  • 20