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.