I am trying to access Autodesk.AEC.ModelData data in forge viewer.
I have two revit models.
so while consuming it inside the viewer for the first model have the Autodesk.AEC.ModelData but when I am trying to access Autodesk.AEC.ModelData in 2nd model it returns me empty.
After verifying in postman by calling api I found in the second model
there is no role with the name Autodesk.AEC.ModelData and I could not find any url with AECModelData.json
so I would like to understand where is it going wrong is it problem at translation level or is has to do it with revit software. do we manually need to add AEC data before exporting file to rvt or nwd ?
please let me know any other solution to access this data or the area where I can take a look
Only RVT saved with Revit 2018 and later will generate AecModelData. If you still cannot see it on files of Revit 2018 and later, you can try to translate it again with the x-ads-force: true request header.
Related
I am trying to complete a full runthrough of the Forge API for an inventor model. We have succesfully managed to submit the workitem which does everything it needs to do based on our personalised appbundles and activities.
The issue is when the new model is trying to be loaded in the viewer with the URN for the SVF which is in the newly created output bucket.
I am getting a translation error and I cannot figure out where the error is coming from or how to fix it.
Is the translation not automatically completed when the SVF is created for export, which is the point of using this activity i thought?
Is it the CreateSVF activity which is not zipping it correctly?
Any suggestions from anyone on where to look if this is an obvious one, can't find the same error online.
TIA.
There is some weird thing Inventor is doing in exported SVF for use in ForgeViewer. It looks like bubble.json is not at the level it is needed to have it. You can see how we are doing the export in our demo application. After export done by Inventor, we move bubble.json to different place. See https://github.com/Autodesk-Forge/forge-configurator-inventor/blob/master/AppBundles/CreateSVFPlugin/CreateSvfAutomation.cs#L101
is there any way so I can see the results of the Reality Capture API output file in forge Viewer, or do I need to download first then again upload that is the only option?
The output of the Recap API that would work are the following: obj and fbx. In order for you to get a viewable and show it with the Forge Viewer it will need to go through the process of using Model Derivative to translate the file into an SVF.
Here is the steps to take to achieve this:
1st. Use Recap API and set the output as obj or fbx - https://forge.autodesk.com/en/docs/reality-capture/v1/tutorials/create-3d-mesh-from-photos/
2nd. Use Model Derivative API - https://forge.autodesk.com/en/docs/model-derivative/v2/tutorials/prep-file4viewer/
I am working on doing a post job and I am confused about where files need to be to run the job and the proper urn.
The examples all use a file that the user uploads to a bucket. I am trying to run the post job on a file that a user has created in Fusion 360 and that he has selected through a GUI I created. The urn in question is obtained by letting the user select the hub, project, folder(s), and file. I then use this file urn on the post job.
I keep getting back the response of :
Failed to download the design description for the input design.
My questions are:
Is it possible to do this from a users hub or do all items have to be in buckets?
Where are those translated files stored once created? If I want to get data like volume and mass without storing the translated file, is that possible?
I took the "urn:" off the front of the urn and got a different error, which I believe meant that it couldn't find any file.
Invalid 'design' parameter.
So, it looks like the urn I am using is finding a file but there is an issue somewhere that is preventing that file from being accessed or translated or something.
I keep getting back the response of : Failed to download the design description for the input design.
For Fusion 360 files make sure the extension name of the object is f2d/f3d. BTW Forge Viewer support these two formats directly so you don't have to translate to SVF for Viewer to visualize them.
Is it possible to do this from a users hub or do all items have to be in buckets?
For hub project items use the Data Management API to obtain the object ID - be sure to include the version parameter in your URN - see GET projects/:project_id/folders/:folder_id/contents and use the id of the item as your URN as well as tutorial here to help you understand how project folder items work.
Where are those translated files stored once created? If I want to get data like volume and mass without storing the translated file, is that possible?
The translated derivatives would be stored separately and you can access them through the derivative manifest. Use GET :urn/metadata/:guid/properties to query derivative properties but you will need to translate the model (to any format will do) in order to extract properties - see tutorial here.
I'm trying to translate Revit file that contains both 3D and 2D geometries. I've verified that the file contains proper 3D geometry, by opening it in revit 2019 and visualizing it through 3D viewing mode.
However, when I pass this file into model derivative process, it only creates 2D derivative.
Before translation process, I've tried to set default view of the revit file as '3D' instead of 2D drawing file, which didn't work.
I've also tried making a translation POST request with formats as 'svf', and views as both ('3D', '2D'), and ('3D' only), which both failed.
However, all these attempts didn't work, and when I inspected the manifest from the file translation, it seems like that 3D geometry is completely missing. I think that there is a unhandled exception in Model Derivative process that fails to extract 3D geometry in our particular forge model file.
If you need URN of the file / actual file, please let me know.
Thanks in advance.
- EDIT
UPDATE:
I've confirmed that the default 3D view is named as {3D}, default name set by Revit.
What is the name of your default 3D view?
The default name is "{3D}", I believe.
Maybe the translation process does not pick it up if it is named differently.
Afaik, the one and only way to specify the views for the translator to process is by using the Collaboration for Revit or C4R BIM 360 Team tool to select the views to publish to the cloud.
I have the following problem with the Autodesk API - viewer.
When I read a file with an urn, I can get data such as refPointTransform.
But when I load a local svf file, I can't.
Here is a photo with an urn:
As you can see, there is refPointTransform.
And a photo of a local svf file.
And there is no refPointTransform.
Do you know why? Have I done something wrong?
Happy new year! I got the comments from engineer team: If the user never modifies the "Site Location" in the Revit model, it does not export such a property. Only after the user has specified the "Site Location" in the Revit model (through "Location Weather and Site" dialog in Revit), would this property be exported. And since 2018, user can do this by importing a geo-referenced DWG/RVT as a link and then acquire the location from the link.
As mentioned in my comments at the beginning, I can only find the model with/without such property (both with on-line urn or offline SVF). I did not see a model that has such property with on-line urn, but not with offline SVF. Could you send me a test file at xiaodong.liang#autodesk.com? Thank you!