将zip文件转换为svf格式超过1次的方法

huangapple go评论65阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年6月5日 18:44:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76405665.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定