【发布时间】:2020-04-13 17:40:00
【问题描述】:
我只是想看看是否可以使用设计自动化 API 创建 SVF 查看器并避免使用模型衍生 API。 几个月前,我与 Forge 支持团队进行了一次谈话,他们告诉我,由于翻译量很大,出于经济问题,我使用 Design Automation 很方便。
提前致谢
【问题讨论】:
标签: autodesk-forge autodesk-designautomation
我只是想看看是否可以使用设计自动化 API 创建 SVF 查看器并避免使用模型衍生 API。 几个月前,我与 Forge 支持团队进行了一次谈话,他们告诉我,由于翻译量很大,出于经济问题,我使用 Design Automation 很方便。
提前致谢
【问题讨论】:
标签: autodesk-forge autodesk-designautomation
不幸的是,除 AutoCAD 外,目前不支持 Design Automation API 上的 SVF 翻译。您可以使用此活动通过 Design Automation API for AutoCAD 生成 SVF:
{
"commandLine": [
"$(engine.path)\\accoreconsole.exe /i $(args[HostDwg].path) /al $(appbundles[Publish2View22].path) /s $(settings[script].path) /suppressGraphics"
],
"parameters": {
"HostDwg": {
"verb": "get",
"description": "Host drawing",
"required": true,
"localName": "$(HostDwg)"
},
"Result": {
"zip": true,
"verb": "post",
"description": "Results",
"required": true,
"localName": "result"
}
},
"id": "AutoCAD.AcSvfPublish+prod",
"engine": "Autodesk.AutoCAD+22",
"appbundles": [
"AutoCAD.Publish2View22+prod"
],
"settings": {
"script": {
"value": "(command \"_prepareforpropertyextraction\" \"index.json\")\n(command \"_indexextractor\" \"index.json\")\n(command \"_publishtosvf\" \"./output/result.svf\")\n(command \"_createbubblepackage\" \"./output\" \"./result\" \"\" \"\")\n"
}
},
"description": "AutoCAD translation sample generating SVF via core console.",
"version": 4
}
【讨论】:
3ds Max 引擎还支持生成 svf 文件。您应该能够轻松编写脚本以导出到 svf 并在 Design Automation 中执行。
有关如何在 maxscript 中导出,请参阅此文档:
请参阅本教程,了解如何在 Design Automation for 3ds Max 中执行脚本:
https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/3dsmax/
【讨论】: