BIM World
A Professional BIM Learning Platform


BIM Q&A | How to Find the Location of Linked Revit Models Using RevitLinkInstance

BIM Q&A | How to Retrieve the Location of RevitLinkInstance Linked Models


To obtain the location of a linked model within a RevitLinkInstance, you can use the GetTransform() method. This method returns a transformation matrix that represents the relative position between the center of the linked file and the center of the current project file.

Here is an example in C#:

[csharp] view plain copy
foreach (RevitLinkInstance element in linkInstances)
{
  var transform = element.GetTransform(); // Obtain the relative transformation
  var location = transform.Origin; // Get the origin point
}

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » BIM Q&A | How to Find the Location of Linked Revit Models Using RevitLinkInstance

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up