autodesk-viewer

How can I load only specifc objects in the forge viewer using SFV2?

假如想象 提交于 2021-01-02 01:50:41
问题 SVF2 has different objectid s/ dbid s than SVF1. In this SO-Answer, it was advised to use externalId instead of objectid . However, viewer.loadModel(svfUrl,{ids:[dbIds...]}) takes dbId s to load only specified objects. How can I load only specified objects using SVF2 and the https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/:urn /metadata/:guid/properties endpoint? Can I access the svf2 objectIds anywhere or can I use the externalIds when calling Viewer3d::loadModel

How can I load only specifc objects in the forge viewer using SFV2?

一笑奈何 提交于 2021-01-02 01:50:11
问题 SVF2 has different objectid s/ dbid s than SVF1. In this SO-Answer, it was advised to use externalId instead of objectid . However, viewer.loadModel(svfUrl,{ids:[dbIds...]}) takes dbId s to load only specified objects. How can I load only specified objects using SVF2 and the https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/:urn /metadata/:guid/properties endpoint? Can I access the svf2 objectIds anywhere or can I use the externalIds when calling Viewer3d::loadModel

How can I load only specifc objects in the forge viewer using SFV2?

天涯浪子 提交于 2021-01-02 01:47:50
问题 SVF2 has different objectid s/ dbid s than SVF1. In this SO-Answer, it was advised to use externalId instead of objectid . However, viewer.loadModel(svfUrl,{ids:[dbIds...]}) takes dbId s to load only specified objects. How can I load only specified objects using SVF2 and the https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/:urn /metadata/:guid/properties endpoint? Can I access the svf2 objectIds anywhere or can I use the externalIds when calling Viewer3d::loadModel

How can I load only specifc objects in the forge viewer using SFV2?

£可爱£侵袭症+ 提交于 2021-01-02 01:44:10
问题 SVF2 has different objectid s/ dbid s than SVF1. In this SO-Answer, it was advised to use externalId instead of objectid . However, viewer.loadModel(svfUrl,{ids:[dbIds...]}) takes dbId s to load only specified objects. How can I load only specified objects using SVF2 and the https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/:urn /metadata/:guid/properties endpoint? Can I access the svf2 objectIds anywhere or can I use the externalIds when calling Viewer3d::loadModel

How can I load only specifc objects in the forge viewer using SFV2?

微笑、不失礼 提交于 2021-01-02 01:42:16
问题 SVF2 has different objectid s/ dbid s than SVF1. In this SO-Answer, it was advised to use externalId instead of objectid . However, viewer.loadModel(svfUrl,{ids:[dbIds...]}) takes dbId s to load only specified objects. How can I load only specified objects using SVF2 and the https://developer.api.autodesk.com/modelderivative/v2/regions/eu/designdata/:urn /metadata/:guid/properties endpoint? Can I access the svf2 objectIds anywhere or can I use the externalIds when calling Viewer3d::loadModel

How do I get a snapshot of the forgeviewer without markups

时间秒杀一切 提交于 2020-12-15 05:38:04
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;

How do I get a snapshot of the forgeviewer without markups

白昼怎懂夜的黑 提交于 2020-12-15 05:35:02
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;

Changing materials in Forge

坚强是说给别人听的谎言 提交于 2020-11-28 08:33:50
问题 We are currently making the client retrieve the object states when the page loads (which will cause the 'pending' objects in the model to turn into different colors). Then we poll for changes to update the coloring (Firstly: pending object gets colored when the viewer loads, and then we keep polling to check and change state again, to make Forge render those in a different color and store their old color/material. When the polling received a change that an object should no longer be colored,

Changing materials in Forge

一曲冷凌霜 提交于 2020-11-28 08:31:27
问题 We are currently making the client retrieve the object states when the page loads (which will cause the 'pending' objects in the model to turn into different colors). Then we poll for changes to update the coloring (Firstly: pending object gets colored when the viewer loads, and then we keep polling to check and change state again, to make Forge render those in a different color and store their old color/material. When the polling received a change that an object should no longer be colored,