#define DWG_TYPE DWG_TYPE_ELLIPSE
#include "tests_common.c"

void
api_process (dwg_object *obj)
{
  int error;
  double axis_ratio, start_angle, end_angle;
  dwg_point_3d center, sm_axis, extrusion;

  dwg_ent_ellipse *ellipse = dwg_object_to_ELLIPSE (obj);

  CHK_ENTITY_TYPE_W_OLD (ellipse, ELLIPSE, axis_ratio, RD);
  CHK_ENTITY_3RD_W_OLD (ellipse, ELLIPSE, sm_axis);
  CHK_ENTITY_3RD_W_OLD (ellipse, ELLIPSE, extrusion);
  CHK_ENTITY_3RD_W_OLD (ellipse, ELLIPSE, center);
  CHK_ENTITY_TYPE_W_OLD (ellipse, ELLIPSE, start_angle, BD);
  CHK_ENTITY_MAX (ellipse, ELLIPSE, start_angle, BD, MAX_ANGLE);
  CHK_ENTITY_TYPE_W_OLD (ellipse, ELLIPSE, end_angle, BD);
  CHK_ENTITY_MAX (ellipse, ELLIPSE, end_angle, BD, MAX_ANGLE);
}
