Divide line into equal parts

I’m trying to evenly space my light fixtures. I have let’s say (27) 4’-0" lights in a line, and I want them equally spaced between two walls across the room. (These are already placed and I need to move them from where they are so as to not break circuiting)

Is there a configuration that would divide a line into equal parts (much line microstation can), and maybe even include the (27) 4’-0" constraints, so I can just run the Dynamo command and have my points on a line/have my lights spaced where I want?

PointAtParameter should get you started. Since you want to move existing elements you’ll also need to know their original locations so you can calculate the vector difference.

1 Like