GetAllLoadedLinks
IEnumerable<RevitLinkInstance> GetAllLoadedLinks(this Document doc)Gets all loaded Revit links from a document.
Parameters
- docDocument
The host document.
Returns: A collection of loaded RevitLinkInstance objects (empty if none).
Example
foreach (var link in doc.GetAllLoadedLinks()){ TaskDialog.Show("Link", link.Name);}