Model Derivative API 404 reply - autodesk-forge

I have some fairly large refit files uploaded to BIM360. When trying to use GET :urn/metadata/:guid on the 3D modelview in the file, I get a 404 reply. For the 2D views in the same file I do not have any issues.
I tried with both force-get and x-ads-force without any luck.
Using same code I do not have any issues with other files (both revit and non-refit files)
Are there any known issue with large revit-files in the translation to SVF? Any ideas to something I could test to see if it is the file or my code that has the issue?
Thank you in advance.

Related

Extractor error code -777 when using design automation

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

Getting file based on weird URI provided in manifest.json returns 404

I am trying to get all the files from autodesk forge using the GET object API
and there's one file that I am unable to download no matter what, the filename is
Finishes.Ceilings.Acoustical Tile.Perforated.2x2.White.jpg.
Link to manifest.json here
I have checked the URI and it looks extremely weird as compared to other files.
so... my question is that, is this a bug on Autodesk side or did I not do something correctly before translating my model to SVF?

Getting Bad request error while loading a model in forge viewer from AWS S3

I am using AWS S3 to store my f2d, manifest and metadata files. My AWS S3 bucket is public so that I can access these file using their URL. Now I tried to load a model using myViewer.loadModel(AWS_Url, opts); , and got Bad Request error. Does anyone have any idea what I might have gone wrong?
This is the error I am getting.
Thank You,
Add more information and make this as official reply. Yes, the viewer can open files directly from S3, without your viewer code, there is not much information that can be got from the response, maybe you can try this way:
myViewer.start(AWS_Url, opts)
Please also check the sample that load f2d from S3 at https://developer.api.autodesk.com/viewingservice/v1/viewers/viewer3d.html?v=3.2.*&svf=https://lmv-models.s3.amazonaws.com/2d_model/primaryGraphics.f2d

F2D streaming broken by non-streaming unzip error in Forge Viewer

I am testing viewing documents in the Forge Viewer after downloading the Bubble's locally. I've been successful up to this point with most formats but am having trouble with PDF's.
I was able to use the extractor project https://github.com/cyrillef/extract.autodesk.io with some modifications to get the PDF to extract. Investigating the downloaded files, they look to be correct.
However, when I go to load this file into the viewer I get the following error.
F2D streaming broken by non-streaming unzip!
Any details on what this means and how to fix it?
Unfortunately, there is no formal documentation to set viewer up for viewing PDFs.
Current solution is pointing to initialize your viewer with the Autodesk.Viewing.ViewingApplication. It will obtain additional configuration values from the manifest for viewing PDFs. You can still retrieving the viewer instance via the Autodesk.Viewing.ViewingApplication.prototype.getCurrentViewer().
Here is the tutorial for the Autodesk.Viewing.ViewingApplication:
https://developer.autodesk.com/en/docs/viewer/v2/tutorials/basic-application/

Beginning with D3.js and parallel coordinates

I would like to use the parallel coordinate toolkit from syntagmatic.github.io/parallel-coordinates/#.
As I am new to the D3.js framework, I am encountering some trouble to begin and visualize data locally.
What I am trying to achieve is to use one of the standalone HTML examples (e.g. brushing.html) and edit the data table with my own data.
I stored locally (in a Windows folder):
the brushing.html example file
the cars.csv file
the D3.js library files from d3js.org (d3.min.js and d3.js)
When I load the HTML file in my browser, only the text displays, not the parallel coordinates themselves.
What am I missing/doing wrong? Should I be able to display locally the same result as what appears in brushing.html?
I checked out several tutorials for D3.js, but they generaly skip these preliminary requirements step. Thanks for any feedback.
Thanks to the straightforward comment to my question, I was able to identify the issues checking the browser's console.
It mainly came down to redefining paths to the different files, and eventually downloading the missing packages from the corresponding Github page https://github.com/syntagmatic/parallel-coordinates
I can now test the tool locally with custom data.