简体   繁体   中英

Autodesk Forge how to save and show Markups

response data for svg markups

markups in model

I want to save all svg Markups on model and show them. I try to save Markups with this code ```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this ```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this ```markupsPersist = markup.generateData(); viewerStatePersist = markup.viewer.getState(); markup.viewer.restoreState(viewerStatePersist);``` and try to get it with this markup.viewer.restoreState(viewerStatePersist); markup.show(); markup.loadMarkups(markupsPersist, "markups-svg"); markup.viewer.restoreState(viewerStatePersist); markup.show(); markup.loadMarkups(markupsPersist, "markups-svg"); but Markups dont appear.

你也应该叫showMarkups使用它们加载后loadMarkups

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