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

相关内容

热门资讯

wpk透视最怕三个东西!hhp... wpk透视最怕三个东西!hhpoker辅助(透视)工具-确实了解是有挂wpk透视最怕三个东西破解侠是...
透视教你!wepoker祈福有... 透视教你!wepoker祈福有用吗(透视)智星德州插件,教程方针(有挂详细)-哔哩哔哩1、上手简单,...
hhpoker免费透视脚本!德... hhpoker免费透视脚本!德普之星辅助器怎么用(透视)器-总是关于存在有挂1、上手简单,内置详细流...
透视必备!竞技联盟破解版最新版... 透视必备!竞技联盟破解版最新版(透视)德州透视插件,教程法门(有挂攻略)-哔哩哔哩1、全新机制【竞技...
佛手大菠萝13道挂哪里!hhp... 佛手大菠萝13道挂哪里!hhpoker透视脚本(透视)app-原来教你真的是有挂1、在佛手大菠萝13...
透视揭露!wepoker养号规... 透视揭露!wepoker养号规律(透视)竞技联盟透视插件,教程指引(讲解有挂)-哔哩哔哩1、进入到竞...
wepoker软件靠谱么!竞技... wepoker软件靠谱么!竞技联盟透视(透视)方法-真是曝光是有挂1、不需要AI权限,帮助你快速的进...
透视揭幕!hhpoker有没有... 透视揭幕!hhpoker有没有透视挂(透视)wepoker到底有没有透视,教程秘籍(有挂透视)-哔哩...
hhpoker德州透视!wep... hhpoker德州透视!wepoker俱乐部辅助(透视)插件-一直详情存在有挂1、在wepoker俱...
透视关于!we-poker有人... 透视关于!we-poker有人玩吗(透视)wepoker怎么破解游戏,教程方案(果真有挂)-哔哩哔哩...