英文:
How to translate zip file to svf format more than 1 times
问题
Currently I'm working on forge IDA, workflow of our code is sending xml file as input through web page (web page just has upload button). and taking ipt files & drawing sheet from BIM360, after performing workitem, storing the output.zip file in bucket. as of now Bundle(code) is working fine, next implementation is showing output (assembly file) on webpage (viewer).
Now I'm able to translate zip file (I referred this tutorial for translation:- 1. https://aps.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-zip-to-stl/
2. https://aps.autodesk.com/blog/forge-aspnet-zero-hero-30-minutes).
But as every time the file is stored in the bucket with the same name and overwriting the existing output.zip file, so while translating the file for the first time I got 'success' result, after that I'm getting the result as 'Created' & the file doesn't get translated and is showing the same file (the first file where I got the result as success) on the viewer.
The webpage and forge application are independent applications; they are communicating with each other using API.
How can I translate the zip file multiple times and show it on the viewer?
Any reply is appreciable.
Thank you,
Siddhesh Nikam
How can I translate zip files multiple times present in the bucket and show them on the viewer?
英文:
currently I'm working on forge IDA, workflow of our code is sending xml file as input through web page(web page just has upload button). and taking ipt files & drawing sheet from BIM360,after performing workitem, storing the output.zip file in bucket. as of now Bundle(code) is working fine, next implementation is showing output(assembly file) on webpage (viewer).
now I'm able to translate zip file(I referred this tutorial for translation:- 1.https://aps.autodesk.com/en/docs/model-derivative/v2/tutorials/translate-zip-to-stl/
2.https://aps.autodesk.com/blog/forge-aspnet-zero-hero-30-minutes).
But as everytime file store in bucket with same name and overiding existing output.zip file, so while translate file for first time I got 'success' result after that I'm getting result as 'Created' & file doesn't get translate and showing same file(first file where I got result as success) on viewer.
webpage and forge application are independent application they are communicating with each other using API.
how can I translate zip file multiples times and show it on viewer?
any reply is appreciable.
Thank you
Siddhesh Nikam
how can I translate zip file multiple times present in bucket and show it on viewer?
答案1
得分: 0
你可以使用x-ads-force
头部来强制进行新的翻译,但是浏览器会缓存资源,所以你仍然需要处理之前的设计在查看器中显示的问题。
我们建议使用新的文件名称来表示同一模型的新版本。所有相关信息,包括链接到其他博客文章的信息,都可以在这里找到:
https://aps.autodesk.com/blog/file-versioning-buckets
英文:
You can force a new translation on the same file using the x-ads-force
header if you want, but then you still have to deal with the previous design showing in the Viewer as the resources are cached by the browser.
What we suggest is using new file names for new versions of the same model. All the relevant information including links to other blog posts are available here:
https://aps.autodesk.com/blog/file-versioning-buckets
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论