- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Background:
I am using python to modify elements in large AutoCAD files. I want to make changes to entities without using the "sendCommand" function. The end resulting drawings cannot contain any splines, among other things. In order to accomplish this I am converting the splines to flattened Bezier Curves (PolyLine). Image 1 helps illustrate this idea.
Image 1: Flattened Bezier Curve, Source: https://pomax.github.io/bezierinfo/
Problem:
I succeeded in creating flattened Bezier Curves, although above degree 3, splines in AutoCAD no longer resemble Bezier Curves as seen below. Degree 3 Spline CV resembles flattened Bezier Curve
Degree 4 curve does not match flattened Bezier CurveQuestion:
How does AutoCAD define splines over degree 4? It appears that the AutoCAD spline is weighted, but when I ask for the weights of the spline i get the following error.
Any help would be greatly appreciated
Thanks for reading
Solved! Go to Solution.