是否有使用Design Automation API转换为SVF查看器的选项

问题描述 投票:0回答:2

我只是在考虑是否有可能使用Design Automation API创建SVF Viewer,并避免使用Model Derivative API。几个月前,我与Forge支持团队进行了交谈,他们告诉我,由于翻译量很大,出于经济原因,使用Design Automation非常方便。

提前感谢

autodesk-forge autodesk-designautomation
2个回答
0
投票

[不幸的是,除AutoCAD外,目前不支持在Design Automation API上进行SVF转换。您可以使用此活动通过AutoCAD的Design Automation API生成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
}

0
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.