1 // DEBUGGING
2 #define DWG_TYPE DWG_TYPE_NAVISWORKSMODEL
3 #include "common.c"
4 
5 void
api_process(dwg_object * obj)6 api_process (dwg_object *obj)
7 {
8   int error, i;
9   BITCODE_BS flags;
10   BITCODE_H definition;
11   BITCODE_BD *transmatrix;
12   BITCODE_BD unitfactor;
13 
14   dwg_ent_navisworksmodel *_obj = dwg_object_to_NAVISWORKSMODEL (obj);
15 
16 #ifdef DEBUG_CLASSES
17   CHK_ENTITY_TYPE (_obj, NAVISWORKSMODEL, flags, BS);
18   CHK_ENTITY_H (_obj, NAVISWORKSMODEL, definition);
19   if (!dwg_dynapi_entity_value (_obj, "NAVISWORKSMODEL", "transmatrix", &transmatrix, NULL))
20     fail ("NAVISWORKSMODEL.transmatrix");
21   for (i = 0; i < 16; i++)
22     {
23       ok ("NAVISWORKSMODEL.transmatrix[%u]: %f", i, transmatrix[i]);
24     }
25   CHK_ENTITY_TYPE (_obj, NAVISWORKSMODEL, unitfactor, BD);
26 #endif
27 }
28