public static IEnumerable <GCLink> CollectAllLinks(GCRevitDocument doc) { return(GCElementCollector.CollectAllElementsOfClass <GCLink>(doc, typeof(RevitLinkInstance), GCLink.IsLink, GCLink.CreateGCRevitLink)); }
public static IEnumerable <GCInstance> CollectAllInstances(GCRevitDocument doc) { return(GCElementCollector.CollectAllElementsOfClass <GCInstance>(doc, typeof(FamilyInstance), GCInstance.IsInstance, GCInstance.CreateGCInstance)); }