stepalibre
Alibre Super User
This script converts 2D sketch geometry into a closed, single spline. I have several variations of this tool that provide more geometry information and other ideas. This script started as a polygon to spline converter, it now covers all geometry types without any options or settings to change.
If you are lofting profiles made from multiple lines, this script will convert them into a single spline at the subdivision level you set.
Please share any ideas or problems. I recommend experimenting with a test file to try it out. I will release a version that includes options to copy or consume the selected sketch, along with other settings.
The script exceeds character limits the latest will be here: https://adai.donetoolkit.com/2DSKETCHPOLYGONTOSPLINETOOL-1885708902a080fdb6dff0567b4bf9c7



Troubleshooting:
The resolution or steps determines the distance between the knots/points of the spline from the input geometry. This current version doesn't enforce any rules that would prevent overlap of the spline as it attempts to close itself.
This results in weird behavior if the steps are too small for the input geometry:

To address this, multiply the input steps by a number (I used 8 here) to increase the spline resolution. You should choose a step size appropriate for your geometry:

If you are lofting profiles made from multiple lines, this script will convert them into a single spline at the subdivision level you set.
Please share any ideas or problems. I recommend experimenting with a test file to try it out. I will release a version that includes options to copy or consume the selected sketch, along with other settings.
The script exceeds character limits the latest will be here: https://adai.donetoolkit.com/2DSKETCHPOLYGONTOSPLINETOOL-1885708902a080fdb6dff0567b4bf9c7



Troubleshooting:
The resolution or steps determines the distance between the knots/points of the spline from the input geometry. This current version doesn't enforce any rules that would prevent overlap of the spline as it attempts to close itself.
This results in weird behavior if the steps are too small for the input geometry:

To address this, multiply the input steps by a number (I used 8 here) to increase the spline resolution. You should choose a step size appropriate for your geometry:

Attachments
Last edited: