Community
Hi everyone,
I have a question. I tried to access the path of Revit Link Instance if the Link file is not loaded (in some reasons).
I used: RvtDocument doc = rvtlink.GetLinkDocument(); But when I debug, doc is null so I can't get doc.PathName.
I tried to reload in Revit, and Revit still remember the old path of Link.
How can Revit get this Path and where can I get that?
Thank you in advanced. Your solution is highly appreciated.
Demo :
IDictionary<ExternalResourceType, ExternalResourceReference> resourceReferences = RevitLinkType.GetExternalResourceReferences();
resourceReferences.Values.First().InSessionPath;
Chuong Ho