how can I call for autodesk forge 3D model in .gltf (or .obj) file to use it in arcgis javascript app?
Thank You
You can generate obj through the workflow described in this tutorial.
You can also take advantage of forge-convert-utils to generate gltf (refer here). This method takes advantage of a SVF, covered here
Related
I am a unity game developer and I want to create 3d mesh generation from images in my unity App. I found a link of Forge Autodesk
Is it possible with "Reality check API" to implement this.
Any suggestion/SDK will be helpful.
If you simply want to generate static assets for your Unity app from photos locally, you could just look at Autodesk ReCap. The Forge Reality Capture APIs would be useful if you wanted to generate the meshes in the cloud instead. I'm afraid we don't have an SDK for these APIs but you could probably put together a simple bash script using curl based on the official tutorial.
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.
We need to create rvt file using mesh data, triangles (indices, vertices, normals, texture uv). So does revit design automation apis supports create mesh with texture and texture uvs? Any examples would be great help.
Thanks.
I would suggest you research the DirectShape functionality of the Revit API: DirectShape. It includes some ability to apply a Revit material (which is a color and/or texture) to the shapes you create. I don't know if texture UV can be specified for DirectShape faces.
If you have your own textures to create in Revit, then you'll want to read about Revit materials and Google how to create them.
Best,
Michael
Design Automation API for Revit (DA4R) could be considered as a Revit runs on the cloud, you can upload your own app bundle that contains your Revit exporter IEXternalDBAppplication Addin to help you export mesh data from the Revit models. Here is an example demonstrating how to export Revit elements into three.js meshes and scene:
https://github.com/va3c/RvtVa3c
But it came with UI, you have to convert it to pure IEXternalDBAppplication (remove UI codes) before uploading to Forge server as DA4R activity.
Hope it helps!
Cheers,
the customer data can be either of dwg file level or object level(such as XRecord), is it possible that Viewer reads it like reading metadata from Revit? Thanks.
You can extract custom data using the approach described in this sample. As of now, the sample runs on Design Automation v2, we're migrating it to v3.
I have a project, use Forge platform and Google Maps API for javascript.
the requirements is that:
1, Display all Cellular-Sites on the GIS map as markers.
I can achieve this through Google Maps API for Javascript.
2, Display the 3D design model of a Cellular-Site while the markers be clicked.
I can achieve this through the Forge platform.
first create a bucket, then upload the 3D model source file and transform to svf format, finally explorer it through the Viewer library.
3, Dynamicly create the 3D model for Cellular-Sites.
Because of the Cellular-Sites consists of some components, Such as a Tower and a House.
There are some different kinds of House and Tower. We have all the 3D model files of the House and Tower.(such as HouseSmall.rfa, HouseLarge.rfa, TowerLow.rfa, TowerHeigh.rfa)
The configurations of Cellular-Sites are stored in database. the Schema may like this:
[
{SiteId:1, SiteName:"small-house-big-tower", HouseType:"HouseSmall", TowerType:"TowerHigh"},
{SiteId:2, SiteName:"large-house-low-tower", HouseType:"HouseLarge", TowerType:"TowerLow"},
]
the position of House and Tower is fixed.
I'm wondering how to automaticlly create the 3D Models of Cellular-Sites according to the configurations.
Any help will be very appreciate.
Thank you very much.
The Forge translation pipeline does not support RFA, but only RVT. That means you would first need to create a RVT for each element, then get them translated into the Forge Model Derivative before using them. YOu can create a catalog of element URN to be consumed into the Forge Viewer later. The Forge Viewer can load multiple URN at the same time, which then should address your needs.
Now to automatically create the 'URN catalog', you need Revit (RFA -> RVT); I guess you can either use the Revit scripting mechanism or write a Revit plug-in for this. Jeremy Tammik wrote a 'room editor' on his blog which shows how to export a RVT to Forge from a plug-in. I believe this would be a good start.