Framing system

Hi All,

I’ve created one of my first script and it was working at some point but suddenly stopped working and appear to be blank as per the picture below. It doesn’t place any families to the selected line and crashes my Revit as well. Can anyone advice why is it happening?

Auto Placement Sample File.dyn (94.9 KB)