Skip to content

Instantly share code, notes, and snippets.

@wallabyway
Created November 5, 2019 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wallabyway/6db0c8116d971962fa437bbeca4dc031 to your computer and use it in GitHub Desktop.
Save wallabyway/6db0c8116d971962fa437bbeca4dc031 to your computer and use it in GitHub Desktop.
OTG cheats
viewer.model.isConsolidated()
viewer.model.isOTG()
viewer.loadExtension("Autodesk.Viewing.Wireframes").then(i=>{i.activate()})
viewer.getExtension('Autodesk.BimWalk').deactivate()
ss=viewer.getState(); delete(ss.seedURN);delete(ss.objectSet); JSON.stringify(ss)
viewer.model.getData().globalOffset
viewer.impl.toggleEnvMapBackground(false)
viewer.impl.invalidate(false,false,true)
dbs=[];NOP_VIEWER.search("300 mm",i=>dbs.push(i))
NOP_VIEWER.model.getBulkProperties(dbs[0],null,i=>console.log(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment