Method: Autocad::ModelTrait#add_arc
- Defined in:
- lib/autocad/model.rb
#add_arc(center, radius, start_angle, end_angle) ⇒ Object
Add an arc to the model
84 85 86 87 88 89 90 |
# File 'lib/autocad/model.rb', line 84 def add_arc(center, radius, start_angle, end_angle) pt = Point3d(center) ole_arc = ole_obj.AddArc(pt.to_ole, radius, start_angle, end_angle) app.wrap(ole_arc) rescue StandardError => e raise Autocad::Error.new("Error adding arc #{e}") end |