-
I am trying to create a circular segment (or arc segment) and it seems that the 'start_point' and 'end_point' parameters are no longer accepted. What would be the best way to go about this? Thanks
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The You can use the construction tool ezdxf.math.ConstructionArc to create arcs from 3 points by the classmethod from_3p() and add the arc by the add_to_layout() method to a layout like the modelspace. import ezdxf
from ezdxf.math import ConstructionArc
doc = ezdxf.new()
arc = ConstructionArc.from_3p(start_point=(0, 0), end_point=(10, 0), def_point=(5, 3), ccw=False)
arc.add_to_layout(doc.modelspace(), dxfattribs={"color": ezdxf.colors.RED})
doc.saveas("arc.dxf") |
Beta Was this translation helpful? Give feedback.
The
add_arc()
method had never the argumentsstart_point
andend_point
because it always used only the geometry parameterscenter
,radius
,start_angle
andend_angle
of the underlying DXFARC
entity to create an arc.You can use the construction tool ezdxf.math.ConstructionArc to create arcs from 3 points by the classmethod from_3p() and add the arc by the add_to_layout() method to a layout like the modelspace.