Im having trouble with myscript for converting cad lines into revit elements such as Ductwork or pipes, im getting this error. Above is the snip of my script, any help is appreciated.
Warning: List.GetItemAtIndex expects argument type(s) (var…, int), but was called with (Revit.Elements.Element, string).