SVF model derivative downloaded as an (almost) emp

2019-07-14 16:02发布

问题:

I have been a happy developer on Autodesk Forge these recent months, and have been able to perform several tasks using the API's.

However, I can't seem to be able to download SVF model derivatives properly (derived either from IFC or RVT files). I've tried the direct curl command or the forge-apis NPM package, without success. Oddly the download works fine, but all I get is a ZIP file with empty directories ("geometry", "material", "scene"), and (non-empty) "manifest.json" and "metadata.json" files.

I use a two-legged authentication process to generate the token (the files are on my Forge developer's account, not on A360 or BIM360). I am able to view the files with the 3D viewer, so the conversion from RVT or IFC to SVF works nicely.

I also tried the https://extract.autodesk.io model extractor, but this doesn't allow me to retrieve the derivative either ("Cannot GET /extracted/2836276-AC11-Institute-Var-2-IFCifc.zip").

Any idea? Thanks in advance.

回答1:

Sorry for the inconvenience, the issue was that I assumed the latest version was set to 2.15 while it is still set as 2.10. The codefix to force version 2.15 has been pushed live.



回答2:

This is a known issue recently, we got some of the issues reported and have already reported to the owner who unfortunately is on vacation now.

I debugged into the code and find that the issue is related to the new added file "wgs.min.js" which was added recently at commit of Jun 16, 2017. Because the project is still using the version of 2.10, unfortunately, there is no 2.10 version of "wgs.min.js" online when it tries to get from https://developer.api.autodesk.com/viewingservice/v1/viewers/wgs.min.js?v=2.10 (2.11 ~ 2.15 are there), this made it fail to package the zip file, so you will get a 404 error downloading the bubbles.

To get the bubble for now, I suggest you to setup a local server from https://github.com/cyrillef/extract.autodesk.io using the version on March 24, 2017. I verified it, should be working good. Or if it's urgent, you can send me the source file and I can help generate the bubbles for you. Let me know.