0

I am using Fusion260 and Autodesk viewer to view STEP files. I know how to individually "hide" individual items and sub-assemblies with the "eye" symbol. However, I want to do the opposite, only view a few focused areas.

I've tried all sorts of modifier keys, to no avail.

Is there a simple way to do this? I can't seem to find that functionality. I'll settle for a way to hide everything, and then I can pick out a few to turn back on?

Thanks!

dave_the_dev
  • 1,555
  • 3
  • 15
  • 27

1 Answers1

0

This feature is not available on the Viewer GUI currently, but you can write some JavaScript codes to call its API to archive what you want.

  1. Press Ctrl key of your key board and mouse click on items you want to keep on the screen
  2. Execute following codes to get current selected elements and isolate them from current view.

    var selections = viewer.getSelection();
    viewer.isolate( selections );
    
  3. The result:

    • Before isolating:

enter image description here

  • After isolating:

enter image description here

Eason Kang
  • 6,155
  • 1
  • 7
  • 24
  • Thanks for the response. I make a selection in the model browser and it highlights. Im using chrome, so I press ctrl-shift-J. I choose "console" and paste in the code, but the first line gets the error "VM850:1 Uncaught TypeError: viewer.getSelection is not a function" . – dave_the_dev Jun 19 '18 at 17:47
  • You have to expose `viewer` into the JavaScript window object. If you just want to test the API quickly, you can use `NOP_VIEWER` instead. https://forge.autodesk.com/blog/do-simple-viewer-api-tests-quickly – Eason Kang Jun 26 '18 at 02:33