简体   繁体   English

Autodesk-Forge 桶系统:新版本控制

[英]Autodesk-Forge bucket system: New versioning

I am wondering of what is the best practise for handling new version of the same model in the Data Management API Bucket system我想知道在数据管理 API Bucket系统中处理相同 model 新版本的最佳实践是什么

Currently, I have one bucket per user and the files with same name overwrites the existing model when doing a svf/svf2 conversion.目前,我每个用户有一个存储桶,并且在进行 svf/svf2 转换时,具有相同名称的文件会覆盖现有的 model。

In order to handle model versioning in be the best manner, should I:为了以最好的方式处理 model 版本控制,我应该:

  1. create one bucket per file converted为每个转换的文件创建一个桶

or或者

  1. continue with one bucket per user.继续每个用户一个桶。

If 1): is there a limitation of number of buckets which is possible to create?如果是 1):是否有可以创建的桶数限制?

else 2): How do I get the translation to accept an bucketKey different than the file name? else 2): 如何让翻译接受与文件名不同的 bucketKey? (As it is now, the uploaded file need to be the filename to get the translation going.) (就像现在一样,上传的文件需要是文件名才能进行翻译。)

In advance, cheers for the assistance.提前为援助干杯。

In order to translate a file, you do not have to keep the original file name , but you do need to keep the file extension (eg *.rvt), so that the Model Derivative service knows which translator to use.为了翻译文件,您不必保留原始文件名,但您需要保留文件扩展名(例如 *.rvt),以便Model 衍生服务知道要使用哪个翻译器。 So you could just create files with different names: perhaps add a suffix like " _v1 " etc or generate random names and keep track of which file is what version of what model in a database.因此,您可以只创建具有不同名称的文件:也许添加“ _v1 ”等后缀或生成随机名称并跟踪数据库中哪个文件是model的哪个版本 Up to you.由你决定。

There is no limit on number of buckets, but it might be an overkill to have a separate one for each file.存储桶的数量没有限制,但是为每个文件设置一个单独的存储桶可能有点矫枉过正。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM