CAD lines to Revit

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).

Hi @mcouillard4VXSY,

For List.GetItemAtIndex, we have to input a number as an index. But above, you input a string instead of a number.
image

1 Like