spline with ezdxf (python)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

spline with ezdxf (python)

ryan
Hi,

I am trying to display a spline done with the python ezdxf package and impossible to do it.

Can please someone help me ?

Thanks, best regards  :)

my very simple python script
---------------------------------------------------
#!/usr/bin/python

import ezdxf

dwg = ezdxf.new('AC1015')  # splines requires the DXF R2000 format or later

fit_points = [(0, 0, 0), (750, 500, 0), (1750, 500, 0), (2250, 1250, 0)]
msp = dwg.modelspace()
msp.add_spline(fit_points)

dwg.saveas("simple_spline.dxf")

Loading...