AutodeskForgeViewer-RevitLocationPoint
创始人
2024-11-12 10:30:34
0

Autodesk Forge Viewer - Revit位置点

要在Autodesk Forge Viewer中获取Revit模型的位置点,可以使用以下代码示例:

var viewer;
Autodesk.Viewing.Initializer(options, function() {
  viewer = new Autodesk.Viewing.GuiViewer3D(document.getElementById('viewer'));
  var startedCode = viewer.start();
  if (startedCode > 0) {
    console.error('Failed to create a Viewer: WebGL not supported.');
    return;
  }

  var urn = 'urn:';
  Autodesk.Viewing.Document.load(urn, function(doc) {
    var rootItem = doc.getRootItem();
    viewer.loadDocumentNode(doc, rootItem).then(function() {
      // Get the model's location point
      var location = viewer.model.getData().location;
      console.log(location);
    });
  }, function(err) {
    console.error(err);
  });
});

在上面的示例中,我们使用 viewer.model.getData().location 来获取Revit模型的位置点。这个位置点是一个数组,包含模型相对于全局坐标系的X、Y和Z坐标。

相关内容

热门资讯

科普攻略!竞技联盟透视插件,p... 科普攻略!竞技联盟透视插件,pokerrrr2辅助,新版2025教程(有挂攻略)是一款可以让一直输的...
交流学习经验!德普辅助器辅助器... 交流学习经验!德普辅助器辅助器怎么用,pokermaster脚本,解密教程(有挂攻略);建议优先通过...
教学盘点!有没有人wepoke... 教学盘点!有没有人wepoker,德扑圈有透视吗,切实教程(有挂辅助);实战中需综合运用上述技巧,并...
详细说明!wepoker免费脚... 1、详细说明!wepoker免费脚本弱密码,wepokerplus外挂,规律教程(有挂透明);详细教...
玩家必用!wepoker的辅助... 玩家必用!wepoker的辅助器,wepoker能不能透视,线上教程(有挂辅助);小薇(透视辅助)致...
热点推荐!德普之星辅助器,哈糖... 热点推荐!德普之星辅助器,哈糖大菠萝可以开挂吗,2025教程(有挂攻略)准备好在哈糖大菠萝可以开挂吗...
解密关于!aapoker透视脚... 解密关于!aapoker透视脚本入口,wepoker有什么规律,插件教程(有挂透视)1、点击下载安装...
今日科普!wpk辅助软件,hh... 今日科普!wpk辅助软件,hhpoker有没有作弊辅助,系统教程(有挂攻略)这是由厦门游乐互动科技有...
揭秘一下!wepoker辅助脚... 揭秘一下!wepoker辅助脚本,hhpoker底牌透视脚本,解密教程(有挂教程);人气非常高,ai...
专业讨论!hhpoker的辅助... 专业讨论!hhpoker的辅助是真的吗,hhpoker免费透视脚本,黑科技教程(有挂技巧)是由北京得...