我想在我的Forgeviewer (7.3版)中读取我的bim360模型,它是otg格式的。这些项目已经使用https://otg-bim.herokuapp.com/应用程序进行了转换。
关于如何让我的Forge查看器读取Bim360中的otg格式,有什么指导原则吗?我找到了这个指南(https://github.com/wallabyway/OTG-client-sample/blob/552c78b1fe8e1177f6694fd947a17fd189a8505b/public/js/ForgeViewer.js#L26-L29),但是它使用了Autodesk.Viewing.ViewingApplication,我在Forge API的版本2中找到了它,但在版本7.3中没有。
发布于 2021-10-13 06:17:47
在使用存储桶而不是bim360时,最新版本的svf2运行良好。我还没有向bim360验证过。对我很有帮助的示例代码是这个npm包。https://www.npmjs.com/package/ng2-adsk-forge-viewer
发布于 2020-01-14 01:45:58
您可以使用此版本的ForgeViewer.js来处理最新版本的查看器。https://github.com/jaimerosales/OTG-client-sample/blob/master/public/js/ForgeViewer.js
发布于 2020-01-17 15:07:06
看起来是同一个svn。错误是选项需要身份验证,即使我已经通过bim360登录进行了身份验证。在那里提供访问令牌,取消对useCookie和useCrentials的注释,它就可以工作了。
const options = {
env: 'FluentProduction',
api: 'fluent',
//useCookie: false,
//useCredentials: false,
accessToken: "add access token even though you are allready authorized in in bim360"
};到目前为止,我已经看到了使用otg :-)加载的显著改进。
https://stackoverflow.com/questions/59719032
复制相似问题