We are attempting to create a balloon on a DWG file but are unsure how to do so in Autodesk Viewer. Could you possibly offer a solution or do you have any resources for this in the Autodesk team?
Also, how to get callout API on the normal Autodesk Viewer?
We are referring circle as a balloons which consists of numbers!
We implemented callouts in Autodesk Construction Cloud, but we couldn't find a way to convert a rectangle of callouts to a circle (Balloons).
First of all, when we're viewing a drawing with Viewer, we're actually viewing a non-modifieble translation of the original desing.
You can find the detailed process at https://aps.autodesk.com/en/docs/model-derivative/v2/tutorials/prep-file4viewer/
From there, you have two options:
Modify the source file and prepare the new version for Viewer
Add the ballon and callouts to the model scene
For option 1 you'll need to use Design Automation API for AutoCAD.
You can refer to the documentation
For option 2 you can add SVG to the scene, take advantage markupcore extensions or integrate your custom markup
Related
I couldn't find Forge Viewer API demo site and don't know what it looks like. I appreciate it if you have some experience using it and answer questions below.
Can you put markup comments on 3D models easily?
When you update comments, are they automatically saved right after you click some update button?
Can you delete 3D model data easily?
Is it mandatory to upload 3D model data to the Autodesk cloud server when you use the Forge Viewer? I don't want to put design data outside of my service but want to see 3D model on a browser.
You can upload any model and check with Viewer through viewer.autodesk.com
We have a few options for markups on documents. this blog might be helpful. You can also take advantage of sprites and textgeometry for labeling your models
Depending on the method you'll need to implement an algorithm to save, store and load your markups.
The data you see with Viewer is the SVF(2) generated by a translation from a source file. To modify the source file, you'll need to run a Design Automation job.
You need to upload your models to a bucket in order to trigger a translation, generating an SVF(2) that can be rendered with Viewer (refer here).
Formats like gltf, pdf, and dwf can be loaded without the need for translations.
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
In our web application, we want to view AutoCAD files using Autodesk viewer API.
As per our requirement we want to select the file and need to open directly in auto-desk viewer site, where all default options like 2D, 3D views are available.
Is it possible to view those files, directly in Autodesk viewer, instead of creating our own viewer?
We do have a minified online viewer that takes a svf - pls make sure all svf assets are available at the same location and open to public access with CORs allowed:
https://autodeskviewer.com/viewers/latest/viewer3d.html?svf=url/to/your/svf (make sure to put in the url to your svf)
But this is NOT an official setup of any sort and is subject to change w/o notice. You are very much encouraged to develop your own, just a few lines of code would do this trick if you already have your models extracted.
Here's a few good places to start:
https://forge.autodesk.com/en/docs/viewer/v6/tutorials/basic-viewer/
http://learnforge.autodesk.io
Tools:
http://models.autodesk.io
https://extract.autodesk.io/
On revit, in 3D view, I have some plumbing pipes with low/medium level of details, so they are just shown as a wire:
If I want to see them nicely, I move up level of detail and I see a nice pipe:
For some files, I cannot edit the original with Revit before sending to forge for conversion. I would like to know how can we see this pipe in forge viewer, even with low level of details?
For info, forge viewer has the element present in model hierarchy.
Thank you,
If I understand it correctly, you upload a "low details" Revit model (with plumbing pipes visualized as wires) to Forge, and in the Forge Viewer you would like to switch back to "full details"?
I'm afraid that is not possible. When converting the Revit model into a Forge Viewer format, all the original geometry is tessellated into triangle meshes, so there's no way to switch between levels of detail after that.
I have been looking at this, and noticed that if i upload the revit model to forge the pipework comes out as singleline, fittings in high detail.
in a similar way to opening a revit file in navisworks directly without converting to a NWC first.
so you can get around it by uploading a NWC file to forge. This doesn't solve the issue, as id prefer to upload the revit file directly.
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.