1 #define DWG_TYPE DWG_TYPE_SOLID
2 #include "common.c"
3 
4 void
api_process(dwg_object * obj)5 api_process (dwg_object *obj)
6 {
7   int error;
8   double thickness, elevation;
9   dwg_point_3d extrusion;
10   dwg_point_2d corner1, corner2, corner3, corner4;
11 
12   dwg_ent_solid *solid = dwg_object_to_SOLID (obj);
13 
14   CHK_ENTITY_TYPE_W_OLD (solid, SOLID, thickness, BD);
15   CHK_ENTITY_TYPE_W_OLD (solid, SOLID, elevation, BD);
16   CHK_ENTITY_2RD_W_OLD (solid, SOLID, corner1);
17   CHK_ENTITY_2RD_W_OLD (solid, SOLID, corner2);
18   CHK_ENTITY_2RD_W_OLD (solid, SOLID, corner3);
19   CHK_ENTITY_2RD_W_OLD (solid, SOLID, corner4);
20   CHK_ENTITY_3RD_W_OLD (solid, SOLID, extrusion);
21 }
22