I am trying to find the position of Linked Revit models in my Project. The locationPoint gives null and I couldnot
find the position.
FilteredElementCollector collector = new FilteredElementCollector(myDoc);//
collector.OfClass(typeof(Instance)).OfCategory(BuiltInCategory.OST_RvtLinks);//RevitLinkType
Select your link in RevitLookup and explore its properties.
Does it have a Location property?
If so, you can access that through the API.
I just noticed your identical question on StackOverflow and provided another answer there which may help further:
https://stackoverflow.com/questions/55556024/how-to-find-the-position-of-a-linked-revit-file
Look at The Building Coder discussion of Determining Host Document Location of a Linked Element:
`RevitLinkInstance` is derived from the `Instance` class, the base class for all instance objects. It provides the methods `GetTransform`, to retrieve the transform of the instance, and `GetTotalTransform` that includes the true north transform as well.
Cheers,
Jeremy
oops, answered the wrong thread by mistake, please ignore, cannot delete answer, just edit...
Can't find what you're looking for? Ask the community or share your knowledge.