【问题标题】:Is there an option for translate to SVF viewer using Design Automation API是否有使用设计自动化 API 转换为 SVF 查看器的选项
【发布时间】:2020-04-13 17:40:00
【问题描述】:

我只是想看看是否可以使用设计自动化 API 创建 SVF 查看器并避免使用模型衍生 API。 几个月前,我与 Forge 支持团队进行了一次谈话,他们告诉我,由于翻译量很大,出于经济问题,我使用 Design Automation 很方便。

提前致谢

【问题讨论】:

    标签: autodesk-forge autodesk-designautomation


    【解决方案1】:

    不幸的是,除 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
    }
    

    【讨论】:

      【解决方案2】:

      3ds Max 引擎还支持生成 svf 文件。您应该能够轻松编写脚本以导出到 svf 并在 Design Automation 中执行。

      有关如何在 maxscript 中导出,请参阅此文档:

      https://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=GUID-624D3D05-B15D-4A97-9F15-DA35CDB0DDD2#GUID-624D3D05-B15D-4A97-9F15-DA35CDB0DDD2__SECTION_EB566E2CC6444FCEAD2EE67BB366F727

      请参阅本教程,了解如何在 Design Automation for 3ds Max 中执行脚本:

      https://forge.autodesk.com/en/docs/design-automation/v3/tutorials/3dsmax/

      【讨论】:

        猜你喜欢
        • 2020-01-17
        • 2020-05-03
        • 2021-03-19
        • 2019-08-04
        • 2021-06-07
        • 2019-07-04
        • 2018-02-19
        • 2021-02-05
        • 2017-07-02
        相关资源
        最近更新 更多