By using the method RevitLinkType.IsLoaded() I can only tell whether or not the link is loaded (True or False). But is there a way to get the Status string?
Solved! Go to Solution.
Solved by naveen.kumar.t. Go to Solution.
What strings can possibly be displayed?
Just the three in your screen snapshot, or others as well?
Have you searched all the members?
https://www.revitapidocs.com/2020/4f035f8a-1314-99c2-a05a-f6d5bea0037a.htm
Have you checked all properties in RevitLookup?
Hi @Anonymous ,
try using the below code
FilteredElementCollector coll = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RvtLinks).WhereElementIsElementType(); foreach (Element e in coll) { ExternalFileReference EX = e.GetExternalFileReference(); string linkStatus= EX.GetLinkedFileStatus().ToString(); }
I hope this helps.