
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to check for CADLinkTypes and have them seperated into two lists, one for the links and one for the imports. According to the Revit API environment(when you hover over the CADLinkType) this can be done with the IsLink function, but I cannot figure out how to actually deploy this function. When I try to call it like another function I am told that it is not defined. This is what I have so far:
public void findLinks()
{
Document doc = this.ActiveUIDocument.Document;
string info = "";
foreach (Element e in new FilteredElementCollector(doc)
.OfClass(typeof(CADLinkType)))
{
CADLinkType fi = e as CADLinkType;
info += fi.Name + Environment.NewLine;
}
TaskDialog.Show("elements",info);
}
Any help on this would be greatly appreciated.
Solved! Go to Solution.