The AutoCAD explanation of the flatten command does not sound like what you described. Is there maybe another command by a different name?there is a function in AutoCAD called "flatten" which breaks down spline entities into polylines with straight and arc segments (the result being a very close approximation of the original), which in turn are perfectly translatable into G-code. Look it up.
https://knowledge.autodesk.com/supp...cles/how-to-flatten-a-drawing-in-autocad.html
Anyway, what you described, I'm not sure fits the bill. As this rack is (hopefully) to serve not only as a rack but as as load bearing linear guide, I think the tooth profiles should be as accurate as conceivably possible. That's why I wanted to get away from using splines. I don't trust splines to be as accurate as I think they should be. This is just a gut feeling; I might be wrong about that. And what you're describing sounds along those lines.Use the FLATTEN (not available in AutoCAD LT) command to change the Z values of all lines, arcs, and polylines to 0
Or, actually what you're describing sounds like the opposite of that (turning splines into polylines). I chose to interpret it the other way because that's the way it made sense to me, because my script generates a polyline already. There are no splines in the file I posted.
Which way did you mean it?




