Automating rebars

I’ve been trying to automate the placing of rebars. but i encountered this problem.

“Warning: Point.PruneDuplicates expects argument type(s) (Point, double), but was called with (Autodesk.DesignScript.Geometry.Line, double).”

What can i do to resolve this?

That node expects a point as the first input, not a line. What are you trying to prune?