Message 1 of 7
### - Please help for getting all linked AutoCAD files in Revit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
### - Please help for getting all linked AutoCAD files in Revit
Hi All,
I am trying to get all the linked AutoCAD files in Revit Api
The way I am coding is like the following:
##############################################
// Find all linked AutoCAD Files in the project
FilteredElementCollector cadLinkCollector = new FilteredElementCollector(doc);
cadLinkCollector.OfClass(typeof(ImportInstance)).Cast<ImportInstance>().Where(e => ((ImportInstance)e).IsLinked && ((ImportInstance)e).Category.Name == "Imported Categories");
IList<Element> cadLinks = cadLinkCollector.ToElements();
##############################################
But I think something is wrong for the collector method.
Please help me !!!!!!!!!!!!!!!!!!!!!!