Is it possible to put translated file to BIM360 Docs? - autodesk-forge

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?

Related

Autodesk Forge Custom parameters from revit

In revit project, my plugin add custom parameters in some of the sheets
Now, I convert the rvt file to svf2 format with derivative api and display the svf2 with the forge viewer.
I should read my custom parameters and there values (only read, not display) and use them in my viewer extension, but I do not find them in the model.
so question:
are the parameters exported ?
if yes, how can I retrieve them ?
thanks in advance
regards
Luc

Autodesk forge viewer

So we are using the forge viewer API, but when we upload file it doesn't show on the viewer and we end up with a gray viewer.
The file transcription to svf seems to not be working properly.
Anyone experience or know how to solve this?
First you need to check if your file is well uploaded in your bucket (I assume that your using Buckets/Object with 2-legged OAuth).
Using this endpoint your must see your uploaded files : Get Objects
In the response, you will find the objectId. This objectId need to be converted into base64 and URL Safe for the SVF translation.
Now, following this tutorial, you will be able to translate your file : Translate to SVF
Please note the response of this request to get the most information about this job.
Finally, check the manifest to know when the translation is complete.

BIM360 External reference between linked IFC file

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?

How to use autodesk viewer api to view .dxf files on my website?

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.

Revit file not supported (while working in A360 viewer) but IFC is working

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.