autodesk-viewer

How to create new Markup Tool in Markups Core Extension?

▼魔方 西西 提交于 2021-01-28 18:15:38
问题 I have a markup extension in Autodesk Forge Viewer for 3D models. I need to create a new extension tool into Markups Core to add in my model but I read the docs to create a new Markup Tool and it not help me, the only thing i found is it: Advance concepts Create a new drawing tool (a new EditMode) Developers are encourage to implement drawing tools not included in the Markups extension. Every drawing tool must have a set of classes to handle them. Let's say for example we are implementing a

Autodesk Forge: What is the difference between dbId, objectId, and nodeId?

大兔子大兔子 提交于 2021-01-27 19:34:23
问题 What is the difference between dbId, objectId, and nodeId? For example, the first argument of the following functions is the same kind of id or ids? fitToView(objectIds,model) objectIds: array of Ids, or null. getProperties(dbId,onSuccessCallback,onErrorCallback) dbId: ID of the node to return the properties for. select(dbids,selectionType) dbids: You can pass an array of IDs or just a single ID. hideById(nodeId) nodeId: (no description) from Viewer API reference here 回答1: It's actually the

Apply custom appearance to individual model fragments in forge viewer

此生再无相见时 提交于 2021-01-24 20:20:04
问题 In the viewable, the model has three leaf nodes that are named “Solid1” but have a parent name of “Tread”, how do I search by parent name to get the dbId? Following the answer from Default material for model in Forge Viewer I can see that we can set a color. Is it possible to instead apply a texture? Thanks! 回答1: The Viewer has a search() function so you can search for any component based on its properties. You can then go up and down the instance tree to go from Thread to Solid1 or vice

Apply custom appearance to individual model fragments in forge viewer

时光毁灭记忆、已成空白 提交于 2021-01-24 20:15:52
问题 In the viewable, the model has three leaf nodes that are named “Solid1” but have a parent name of “Tread”, how do I search by parent name to get the dbId? Following the answer from Default material for model in Forge Viewer I can see that we can set a color. Is it possible to instead apply a texture? Thanks! 回答1: The Viewer has a search() function so you can search for any component based on its properties. You can then go up and down the instance tree to go from Thread to Solid1 or vice

Incorrect results using Autodesk Forge Viewer Geolocation Extension

可紊 提交于 2021-01-07 01:38:34
问题 This is related to my previous question. I'm posting a new question to try and explain the situation better. I am placing marker objects on a model using data taken from drone surveys. I have access to high accuracy GPS data and also omega/phi/kappa rotation data. I am trying to use the Autodesk.Geolocation extension to convert the lon/lat/alt data to viewer space. All models were originally created in Revit. When I use the Geolocation extension, it seems like the refPointLMV and GlobalOffset

How to match objectids from Autodesk Model Derivative API metadata with Forge Viewer model dbids?

瘦欲@ 提交于 2021-01-06 07:32:29
问题 I am building an application around Autodesk Forge Viewer, where I add extra functionalities using basic functions from Viewer (coloring, isolating etc.) depending on client data. This application also allows you to upload a new model. After the upload and conversion process, metadata is extracted from the model using this Model Derivative API https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/, which basically returns the tree of objects and their ids

How to match objectids from Autodesk Model Derivative API metadata with Forge Viewer model dbids?

假如想象 提交于 2021-01-06 07:32:11
问题 I am building an application around Autodesk Forge Viewer, where I add extra functionalities using basic functions from Viewer (coloring, isolating etc.) depending on client data. This application also allows you to upload a new model. After the upload and conversion process, metadata is extracted from the model using this Model Derivative API https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/, which basically returns the tree of objects and their ids

upgrade three js version in autodesk forge viewer

泪湿孤枕 提交于 2021-01-04 05:41:08
问题 I was looking to upgrade the three js which is used in autodesk forge behind the scene and reason for upgrade is I am trying to use this library and this need three js r71 and above and inside forge viewer it seems they are using r33. I found a blog where it showed me how can I take the advantage of later three js. I followed it but seems like its not working. There forge viewer now have 2 references of three js and it gets confused which one to use and hence some of code behave weird here is

upgrade three js version in autodesk forge viewer

痴心易碎 提交于 2021-01-04 05:40:46
问题 I was looking to upgrade the three js which is used in autodesk forge behind the scene and reason for upgrade is I am trying to use this library and this need three js r71 and above and inside forge viewer it seems they are using r33. I found a blog where it showed me how can I take the advantage of later three js. I followed it but seems like its not working. There forge viewer now have 2 references of three js and it gets confused which one to use and hence some of code behave weird here is

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

人盡茶涼 提交于 2021-01-02 01:54: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