Autodesk forge 如何以OTG格式提取模型并下载到本地机器

Autodesk forge 如何以OTG格式提取模型并下载到本地机器,autodesk-forge,autodesk-viewer,autodesk-model-derivative,Autodesk Forge,Autodesk Viewer,Autodesk Model Derivative,据了解,2019年8月底,无法提取和下载新的OTG格式。 有更新的信息吗?我在中找不到任何信息。请查看样本。它有下载OTG气泡的选项,还显示了如何配置查看器来加载它 以下是从BIM360项目获取OTG的示例 # Do authorization/authentication. node forge.js 3legged auto # Get the list of Hubs. node forge.js hubs ls # Get the list of projects. node for

据了解,2019年8月底,无法提取和下载新的OTG格式。 有更新的信息吗?我在中找不到任何信息。

请查看样本。它有下载OTG气泡的选项,还显示了如何配置查看器来加载它

以下是从BIM360项目获取OTG的示例

# Do authorization/authentication.
node forge.js 3legged auto

# Get the list of Hubs.
node forge.js hubs ls

# Get the list of projects.
node forge.js projects ls $hubid

# Get the Project tree information.
node forge.js projects tree $hubid $projectid

# Download the SVF Bubble
node forge.js bubble get $versionid ./bubbles/MyPath --otg

# Create an HTML page with your local URN
node forge.js html get /MyPath/$VERSION_NUMBER/bubble.json ./bubbles/output.html

# Start local server and load the HTML page.
open http://localhost:7124/output.html & PORT=7124 & node fluent-server/start.js ./bubbles/

感谢您的快速回复。我试着根据你的回答得到OTG文件,但我做不到。在获取“attrs.json”的“getViewModelJson”函数中发生了错误,以此类推。错误消息如下所示\pdb\vals.json错误:未经授权(节点:20424)未经处理的PromisejectionWarning:#(节点:20424)未经处理的PromisejectionWarning:未经处理的承诺拒绝。此错误源于在没有catch块的异步函数中抛出,或者拒绝未使用.catch()处理的承诺。(拒绝id:1)(节点:20424)[DEP0018]弃用警告:未处理的承诺拒绝被弃用。将来,未处理的承诺拒绝将以非零退出代码终止Node.js进程。嘿,为了确保,您使用Forge客户端ID设置了BIM360帐户,并用中心、项目、项目和版本ID替换了$xxx?您还可以确认您的应用程序是否在Windows上运行。谢谢您的快速回答,我尝试了两条腿的OAuth。因此,不要连接到BIM 360。OTG模型不能用2腿OAuth下载吗?@TakumiOYA,如果您使用2legged和OSS,则OTG格式不会自动生成,因此会出现错误。这还意味着您需要调用API来为OSS生成OTG气泡。不幸的是,我今天无法共享该API,因为该API位于尚未投入生产的服务器上:(