Trimming field line curves using length

i want to trim these curves according to a particular length, (50 units)
I’ve attached grasshopper file as well
can somebody please help?

MAG field lines on site.3dm (324.2 KB)
MAIN MAG (34.5 KB)

Something like this?

MAIN MAG (24.0 KB)


yes its working now
thank you very much