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坐标。

相关内容

热门资讯

普及透视!poker worl... 普及透视!poker world辅助!一直真的有辅助脚本(竟然有挂)-哔哩哔哩暗藏猫腻,小编详细说明...
详细透视!佛手在线大菠萝为什么... 详细透视!佛手在线大菠萝为什么都输!切实存在有辅助工具(了解有挂)-哔哩哔哩1、点击下载安装,佛手在...
普及透视!pokerrrr2辅... 普及透视!pokerrrr2辅助!真是真的是有辅助教程(存在有挂)-哔哩哔哩1、用户打开应用后不用登...
揭幕透视!哈糖大菠萝攻略!好像... 揭幕透视!哈糖大菠萝攻略!好像真的有辅助插件(有挂教程)-哔哩哔哩1、哈糖大菠萝攻略辅助软件下载优化...
分享透视!xpoker辅助器!... 分享透视!xpoker辅助器!其实一直总是有辅助方法(发现有挂)-哔哩哔哩运xpoker辅助器辅助工...
开挂透视!pokemmo手机辅... 开挂透视!pokemmo手机辅助软件!都是有辅助脚本(真是有挂)-哔哩哔哩1、pokemmo手机辅助...
详情透视!xpoker透视辅助... 详情透视!xpoker透视辅助!真是真的有辅助神器(真是有挂)-哔哩哔哩1)xpoker透视辅助免费...
解谜透视!哈糖大菠萝攻略!好像... 解谜透视!哈糖大菠萝攻略!好像存在有辅助工具(真是有挂)-哔哩哔哩1、任何哈糖大菠萝攻略透视是真的假...
揭幕透视!约局吧游戏挂!总是是... 揭幕透视!约局吧游戏挂!总是是真的有辅助app(今日头条)-哔哩哔哩1、上手简单,内置详细流程视频教...
解迷透视!约局吧作必弊脚本!本... 解迷透视!约局吧作必弊脚本!本来存在有辅助插件(有挂技术)-哔哩哔哩约局吧作必弊脚本破解侠是真的助透...