Can somebody tell me a way of collecting all the model lines in a project using Python?
The code below collects all lines in project which I think includes detail lines? This is too slow on a large project that has got a bit messy.
import clr clr.AddReference('RevitServices') from RevitServices.Persistence import DocumentManager doc = DocumentManager.Instance.CurrentDBDocument clr.AddReference('RevitAPI') import Autodesk from Autodesk.Revit.DB import * #The inputs to this node will be stored as a list in the IN variables. toggle = IN collector =  if toggle == True: collector.append(FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Lines).WhereElementIsNotElementType().ToElements()) else: pass #Assign your output to the OUT variable. OUT = collector