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

相关内容

热门资讯

最新研发!约局吧能不能开挂(辅... 最新研发!约局吧能不能开挂(辅助挂)切实有挂(有挂规律)1、下载好约局吧能不能开挂脚本下载之后点击打...
最新技巧!we poker辅助... 最新技巧!we poker辅助器(辅助挂)切实是有挂(有挂实锤)1、每一步都需要思考,不同水平的挑战...
记者发布!wepoker挂(辅... 记者发布!wepoker挂(辅助挂)原来存在有挂(详细教程)1、起透看视 wepoker挂辅助软件价...
玩家科普!hhpoker是内部... 玩家科普!hhpoker是内部控制吗(辅助挂)本来真的是有挂(有挂方法)1、hhpoker是内部控制...
科普常识!wepoker软件靠... 科普常识!wepoker软件靠谱么(辅助挂)确实有挂(有挂规律)1、wepoker软件靠谱么免费辅助...
总算明白!智星菠萝透视(辅助挂... 总算明白!智星菠萝透视(辅助挂)好像真的有挂(有挂秘笈)1、超多福利:超高返利,海量正版游戏,智星菠...
重大消息!拱趴大菠萝万能挂(辅... 重大消息!拱趴大菠萝万能挂(辅助挂)一直有挂(有挂细节)1、拱趴大菠萝万能挂透视辅助软件激活码多个强...
免费测试版!德普之星透视辅助软... 免费测试版!德普之星透视辅助软件激活码(辅助挂)都是存在有挂(有挂方略)暗藏猫腻,小编详细说明德普之...
一分钟秒懂!fishpoker... 一分钟秒懂!fishpoker透视底牌(辅助挂)原来真的有挂(有挂技巧)1、下载好fishpoker...
每日必看教程!pokermas... 每日必看教程!pokermaster破解版(辅助挂)确实是真的有挂(证实有挂)1、操作简单,无需po...