1 #define DWG_TYPE DWG_TYPE_SECTIONOBJECT
2 #include "common.c"
3 
4 void
api_process(dwg_object * obj)5 api_process (dwg_object *obj)
6 {
7   int error, isnew;
8   BITCODE_BL state;
9   BITCODE_BL flags;
10   BITCODE_T name;
11   BITCODE_3BD vert_dir;
12   BITCODE_BD top_height;
13   BITCODE_BD bottom_height;
14   BITCODE_BS indicator_alpha;
15   BITCODE_CMC indicator_color;
16   BITCODE_BL i, num_verts;
17   BITCODE_3BD *verts;
18   BITCODE_BL num_blverts;
19   BITCODE_3BD *blverts;
20   BITCODE_H section_settings;
21 
22   dwg_ent_sectionobject *_obj = dwg_object_to_SECTIONOBJECT (obj);
23 
24   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, state, BL);
25   CHK_ENTITY_MAX (_obj, SECTIONOBJECT, state, BL, 4);
26   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, flags, BL);
27   CHK_ENTITY_MAX (_obj, SECTIONOBJECT, flags, BL, 256); //??
28   CHK_ENTITY_UTF8TEXT (_obj, SECTIONOBJECT, name);
29   CHK_ENTITY_3RD (_obj, SECTIONOBJECT, vert_dir);
30   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, top_height, BD);
31   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, bottom_height, BD);
32   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, indicator_alpha, BS);
33   CHK_ENTITY_CMC (_obj, SECTIONOBJECT, indicator_color);
34   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, num_verts, BL);
35   CHK_ENTITY_3DPOINTS (_obj, SECTIONOBJECT, verts, num_verts);
36   CHK_ENTITY_TYPE (_obj, SECTIONOBJECT, num_blverts, BL);
37   CHK_ENTITY_3DPOINTS (_obj, SECTIONOBJECT, blverts, num_blverts);
38   CHK_ENTITY_H (_obj, SECTIONOBJECT, section_settings);
39 }
40