Is it possible to extract or query the Element vertices or coordinates using Forge Model Derivative API without using the Forge Viewer? - autodesk-forge

I would like to ask you that is it possible to extract or query the Element vertices or coordinates using Forge Model Derivative API without using the Forge Viewer in the middle.
Thanks for your help!

Related

Is it possible to identify interior and exterior elements of a BIM model using Autodesk forge?

I've been learning Forge API for past few months, but still relatively new to the platform. Please excuse if this is an obvious question.
I have an Autodesk Forge application where I upload a Revit file and extract its meta data into a database. In the metadata, there is a category called 'Function'. It shows if the particular element is Interior or Exterior. If the 'Function' data is missing, is there any possible way to identify an interior and exterior element using the Autodesk forge API? Or programmatically?
In Revit, I use Element.Location node (in Dynamo) and extract XYZ coordinates of walls, windows etc, and run that data through an algorithm which differentiates interior and exterior elements. What is the possible way of identifying interior and exterior walls, windows, stairs etc.
Appreciate any help/guidance.
As I know, only Revit walls have the function parameter, and it's part of element properties (in Revit, we call it parameters). In Forge Viewer, you can get it via call Viewer3D#getProperties.
https://knowledge.autodesk.com/support/revit-lt/learn-explore/caas/CloudHelp/cloudhelp/2022/ENU/RevitLT-ArchDes/files/GUID-718C1341-C4FC-40D6-9646-D2E13A861D33-htm.html
Unfortunately, there is no equality of Revit API's Element.Location in Forge Viewer, since all geometries will be translated to meshes during Forge translation. To get mesh location, you may take advantage of the center of the object bounding box: https://stackoverflow.com/a/64769854/7745569

Autodesk Forge - Revit coordinates

is it possible to get revit models coordinates with model derivative API?
I mean coordinates that in revit I get with manage -> Location (see picture)Revit manage -> location
TIA
Alder
You can definitely obtain this information using Forge Design Automation API. I am not sure how to get it in the model derivative API; the information in Eason Kang's answer on Revit shared coordinates to Forge viewer ought to come in useful, though.

Is it possible to add google map or Esri map in viewer of Autodesk forge for 3d Model?

I am trying to load Base Map in Autodesk viewer for 3d RVT model. I know, It is not possible as per documentation provided by forge site but I would like to know if anyone found any workaround.
Thanks in advance
You can use this as reference: https://github.com/Autodesk-Forge/forge-extensions/tree/master/public/extensions/GoogleMapsLocator

Unable to retrieve Geo Reference or coordinates in Forge Viewer for 2D DWG files

We have a 2D DWG file that is georeferenced with coordinates and translate the file using forge API.
We load the file on the forge viewer and load Autodesk georeference Extension. (checked on AutoCad 2021 tool as well)
I am trying to retrieve these properties but get
hasgeoreference false,
globaloffset undefined
Because of this, I am unable to use the LMV LAT functions in the georeference Extension.
could someone tell me if I have missed something...?
What application is your georeferenced DWG coming from? The Forge Model Derivative service supports georeference data coming from Revit 2D sheets but I'm not sure about other applications. Also, if you could privately share one of the DWGs with us via forge (dot) help (at) autodesk (dot) com, we'd be happy to pass it on to the engineering team and investigate further on our end.

Translate multiple models in Forge Model Derivative API

I want to translate multiple models using the Forge API. Currently we are able to translate a single model successfully.
Our requirement is to load multiple models in the Forge viewer. For that we need to translate multiple files in the Forge Model Derivative API.
To translate multiple models, is the same as translating a single model in your Forge Bucket storage.
Once you have created the SVFs, grab their URNs and load multiple models into the Forge Viewer using this blog post as your guide:
https://forge.autodesk.com/blog/loading-multiple-models-forge-viewer-v7
The trick is to set this Viewer option...
viewer.loadDocumentNode(doc, viewables,{
keepCurrentModels: true,
...etc
Let me know if that helps
Cheers
Michael