Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi;
I've used just for years the code from https://adndevblog.typepad.com/aec/2012/10/accessing-data-from-linked-file-using-revit-api.html.
IList<Element> elems = collector
.OfCategory(BuiltInCategory.OST_RvtLinks)
.OfClass(typeof(RevitLinkType))
.ToElements();
foreach (Element e in elems)
{
RevitLinkType linkType = e as RevitLinkType;
String s = String.Empty;
foreach (Document linkedDoc in uiApp.Application.Documents)
{
if (linkedDoc.Title.Equals(linkType.Name))
{But it seems that the linkedDoc.Title can be different from linkType.Name for files on BIM360? Does this happen if user changes the name of the Revit file on BIM360? or how...
And does it mean on have to use GUIDs/IDs instead?
Solved! Go to Solution.