Please find the tool in attachment.
You need to select or activate the sketch you want to process and run the ‘ConvertLinesToSpline.exe’ file from the attached .zip.
Please let me know if you have any questions.
Regards, Artem Taturevych | Snr. Developer | IC3D ANZ
IC3DSteel – Novice Steel Solution for SolidWorks
translationXpert – SolidWorks files language translator
ConvertLinesToSpline.zip 626.2 KB
If I understand correctly you are making multiple sketches using the intersection curve option to project the cut surface as sketch lines.
Doing this multiple times and then making the projected intersection into a loft surface.
If you have a sketch with the projected lines (those dozens/hundreds of line segments) you can select the ones you want to make into a spline. For the sake of argument I will assume you want to make all the segments into 1 spline.
Open the sketch -> select all the line segments -> use the "fit spline" function
(you can choose to consume the original line segments, which I recommend due to their large quantity.)
This is basicly what the macro would do.
This will transform all line segments in that sketch into 1 spline. Doing this for each sketch you can then use the surface loft to connect the splines to create the required surface.
I hope this is of any help,