Does anyone know if there is a way to "fit" linear entities
such as lines and arcs to a spline in the same fashion that a
spline can be "fit" to a series of linear entities?
Well, I'm not looking to copy the spline geometry in all it's
exactness. I'd be interested in fitting lines and arcs as close as
possible to the spline geometry. Convert entities only copies the
existing spline. In other words the geometry created by using
convert entities is still a spline.
It appears that at this time, the only method to convert splines to
arcs is by saving as a dxf file from a drawing, which gives you the
option of saving as a polyline with arcs.
I am breaking down the spline to tiny linear segments and then group them in order to build arcs or lines from them, all according to the desired percision.
It's a mess but very implementable. Sadly I may not share my code but reading the warning I posted here may help :
I had used the formula driven sketch tool for something similar some time ago in an attenpt to help someone trying to smooth a curve. Perhaps it would work for your application: https://forum.solidworks.com/message/123775#123775
Good grief - just noticed the Oct 2008 date! Where's my coffee....
This topic came up in another thread:
click here
It appears that at this time, the only method to convert splines to arcs is by saving as a dxf file from a drawing, which gives you the option of saving as a polyline with arcs.
It's good to know of the dxf trick. Thanks.
I am breaking down the spline to tiny linear segments and then group them in order to build arcs or lines from them, all according to the desired percision.
It's a mess but very implementable. Sadly I may not share my code but reading the warning I posted here may help :
https://forum.solidworks.com/thread/57374
I had used the formula driven sketch tool for something similar some time ago in an attenpt to help someone trying to smooth a curve. Perhaps it would work for your application: https://forum.solidworks.com/message/123775#123775
Good grief - just noticed the Oct 2008 date! Where's my coffee....
You never know when someone may stumble upon this thread in need of a similar solution.
Cool post by the way.