简体   繁体   中英

Unable to interact with Autodesk View after MarkupsCore Extension custom code

I am using Autodesk.Viewing.MarkupsCore Extension for marking up rectangle in 3d viewer while orientation of the view is TOP.

Then I am saving the coordinates and deleting all the markups.

But after I leave EditMode and remove all the markup I neither can move the view nor can rotate it.

I have tried this:

 if (this.state.markupOn) { // this is the condition of leaving the markup
       markupExtension.leaveEditMode();

      svgData = markupExtension.generateData();
       markupExtension.unloadMarkupsAllLayers();
      markupExtension.viewer.impl.invalidate(true);
      markupExtension.leaveEditMode();
      window.Autodesk.Viewing.Extensions.Markups.Core.Utils.showLmvToolsAndPanels(
        this.viewer
      );
      this.setState({ markupOn: !this.state.markupOn });
      return;
    }

After trying all this I am unable to interact with view. Please help me with this.

The usage of the markups extension is explained in this blog post: https://forge.autodesk.com/blog/using-autodeskviewingmarkupscore-extension .

If you followed this article and you're still having issues, please send us a more complete code sample to forge (dot) help (at) autodesk (dot) com so that we can explore it further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM