AcDbArc constructor

AcDbArc(
  1. int? _handle, {
  2. double x = 0,
  3. double y = 0,
  4. double z = 0,
  5. double radius = 0,
  6. double startAngle = 0,
  7. double endAngle = 0,
  8. String layerName = '0',
})

Implementation

AcDbArc(this._handle,
    {double x = 0,
    double y = 0,
    double z = 0,
    double radius = 0,
      double startAngle=0,
      double endAngle =0,
    String layerName = '0'})
    : _x = x,
      _y = y,
      _z = z,
      _radius = radius,
_startAngle = startAngle,
_endAngle = endAngle,
      _layerName = layerName {


  _groupCodes.add(GroupCode(0, 'ARC'));
  _groupCodes.add(GroupCode(5, handle!.toRadixString(16)));
  _groupCodes.add(GroupCode(330, '1F'));
  _groupCodes.add(GroupCode(100, 'AcDbEntity'));
  _groupCodes.add(GroupCode(8, layerName));
  _groupCodes.add(GroupCode(100, 'AcDbCircle'));
  _groupCodes.add(GroupCode(10, x));
  _groupCodes.add(GroupCode(20, y));
  _groupCodes.add(GroupCode(30, z));
  _groupCodes.add(GroupCode(40, radius));


  _groupCodes.add(GroupCode(100, 'AcDbArc'));
  _groupCodes.add(GroupCode(50, startAngle));
  _groupCodes.add(GroupCode(51, endAngle));



}