How to make 2 section planes with section extension, disable edges lines and enable arrow?

33 Views Asked by At

I recently discovered an method from Autodesk.Section tool called setPlane using this, I can set one or more cutplanes into model (using setSectionPlane the previous cutplane disappear) and achieved this result:

double cutplane

But with a few problems:

  • The second cutplane diaplys model's bounds
  • Arrow's active but I can't move it
  • Can't select the previous plane to move it

So, my goal is to be able to set two cutplanes, display no edges lines and be able to dinamic select one and move it.

1

There are 1 best solutions below

2
varunpatil On
let sectionext = viewer.getExtension('Autodesk.Section')
console.log(sectionext.mode)   // 'x' or 'y' or 'z' or 'box'

At any given point, the section tool can only be in one mode, not multiple. So, you have to deactivate and activate again. This may not be as smooth as you're expecting, but this is the only way.