遍历Autodesk

问题描述

我的团队已经在他们的Revit软件中创建了一个演练,如本视频所示[此处] [1]。我们正在寻找一种在Forge Viewer中呈现此过程的方法。

解决方法

关于#1:恐怕演练信息不是由模型导数服务提取的,因此在Forge Viewer中将不会自动提供。

关于#2:这是Revit API forum的一个问题,但我认为应该可以通过编程从Revit模型中提取演练。而且,如果有可能,您甚至可以通过在Forge Design Automation service中运行Revit插件来自动执行此过程。

关于#3和#4:如果您能够提取演练相机数据,例如说成一个JSON文件,则可以肯定地在Forge Viewer中实现类似的演练,例如,使用viewer.navigation.setView方法,或使用类似viewer.navigation.setRequestTransition(state,pos,coi,fov,reorient,pivot)的名称。这是各个参数的文档:

/**
 * Issue a request to transition the current cameras view to that specified by the parameters.
 *  @param {boolean} state - value of the request. Set to true in order to request the change of view.
 *  @param {THREE.Vector3} pos - the new camera position in world space
 *  @param {THREE.Vector3} coi - the point in world space that the camera should look towards.
 *  @param {number} fov - vertical field of view in degrees
 *  @param {boolean} reorient - set to true to recalculate up vector
 *  @param {THREE.Vector3} pivot - the new pivot point
 */

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...