How does Autodesk Forge viewer get the current model

I want to hide all the current artifacts. I look up API as if I use the hideModel method. I need modelId, to ask how to get the modelId of the current model

.
Aug.05,2021

viewer.model.id gets the master variable


NOP_VIEWER.model.id console of modelid
viewer.hideModel (the id you just got)
viewer==NOP_VIEWER==forge. Just take a look at the id,NOP_VIEWER.hideModel (~) in NOP_VIEWER.model and you can hide it. Since you don't have to load it, why load it?

Menu