The file is imported, you need to calculate to length of the un bended product.
Start with defining start and end point with Sketch.
Create Plane as needed
Connect Star and End endpoint with Sketch, depending on plane that cross the middle of the bended rod
Use Composite Curve to combine all
Measure the Composite Curve result
Use the total length to create the straight rod