I'm following this example:
https://forge.autodesk.com/blog/bim360-docs-setting-external-references-between-files-upload-linked-files
And this input:
Autodesk Forge - Linking items one to another on BIM 360 docs
To restore the links in a host RVT file, for RVT links this works fine.
So far i'm unable to do the same for a linked IFC file.
I tried the *.IFC link as also the *.ifc.rvt file.
Is this possible? any pointers?
Related
I'm just starting with Autodesk Forge, and I'm trying to follow "View BIM 360 & Fusion models" sample on https://learnforge.autodesk.io/#/tutorials/viewhubmodels.
The tree correctly shows the hubs, projects, files and versions.
However, when I pick some version the viewer don't show that file.
I also tried to download directly from GitHub (https://github.com/Autodesk-Forge/learn.forge.viewhubmodels/tree/net), but same thing happens...
Tried with .rvt and .pdf.
Any kind of configuration that I'm missing?
** Update **:
I've debug the code and found:
DataManagementController -> GetItemVersions gets urn value;
for that versions, launchViewer(urn, viewableId) gets "Error: 403 (Unauthorized)"
viewableId is undefined
I am looking at .rvt and .pdf files...
I am missing any configuration? Any clue?
Regards
António
Solved!
The Viewer needs access to Model Derivative API.
Ensure it is properly configured on your Forge API.
Design Automation AppBundles for Revit require the identification of the Revit engine, which includes the version (year) of Revit. So to make a Design Automation to support multiple Revit versions, there will be multiple AppBundles, and multiple Activities based on these years. Which is no problem, but how do I determine the version year of the BIM 360 project or the .rvt file to submit a work item to the correct activity? It seems like this data should be available since Revit will only list BIM360 Projects that are in the same version as the copy of Revit opened.
This thread from 2 years ago suggests it is not possible, but has that changed?
I also found this blog post to download the beginning of the file to get this data, but this appears to only work on single user files, and does not work for workshared RVT files, and all of our BIM360 projects are workshared.
Are there any new options?
EDIT: To clarify, I'm in search of a method to determine the Revit version of a workshared RVT file that is stored in BIM 360. Preferably without downloading the file from BIM 360. The Revit version of the entire "Project" on BIM 360 would work as well, but I don't see that in the project information returned by the BIM 360 API or the Data Management API.
You can determine the Revit version of an RVT file by accessing its BasicFileInfo properties. This can be done without opening the file in question. However, it does require the Revit API, and hence a Revit installation.
The Building Coder shares some other solution enabling Revit RVT file version determination without the Revit API, cf., e.g., RvtVerFileOpen – Open Correct RVT File Version and Determining RVT File Version Using Python.
Update: In his tweet, Augusto points out that you can now check the version of a Revit file hosted on the cloud simply by reading the RVTVersion attribute in the Document Information manifest properties.
I am trying to translate Revit model to an IFC , and to put it to Bim360 Docs without downloading to computer.
I've tried to create FirstFileVersion from derivativeURN , but i've had an error.
How i can do that?
I have around 200 .dxf files on my server. I would like to integrate the autodesk-forge viewer so that people coming to my website can view the drawings? I do not see any example as such online which can help me in that? Do you guys have any examples which can assist me in this?
I do not want to upload the files on the cloud and use the embed link rather I just want to use the viewer api and pass my .dxf files from my server to view those on my website.
Any help will be highly appreciated?
I am afraid this is not possible, the Autodesk Forge Viewer requires you to upload the file on the Autodesk storage and use the Model Derivative API to prepare your DXF files to be viewed in the Viewer. You do not need to keep the DXF on the Autodesk storage after the process, but this is a required step.
If you follow this tutorial, you will be able to see you DXF files onlines. All resources are protected, but if you want to delete the seed file (aka the DXF file), you need to call this endpoint at the end of the tutorial steps.
For a proof of concept I'm playing around in Postman with the Autodesk Forge API's and I'm doign the following.
authenticate
create & get bucket
upload model (in IFC and Revit) in bucket
translate it
extract meta-data.
With IFC files everything is working like a charm but it's not working with Revit files no matter what I do or which Revit file I try.
I tried 3 of my own Revit files (that do work in Autodesk 360 viewer based on Forge) and Autodesk's sample Revit file Basic Sample Project 2016
I'm wondering if it could be something specific in my API calls that I'm missing.
Below are two screenshots of two calls that I'm doing;
put model in bucket
validate translation giving error with Revit but working with IFC
Hope you can help, because I'm very stuck.