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
}















Must log in before commenting!
Sign Up