1 #define DWG_TYPE DWG_TYPE_UCS_CONTROL
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_BS i, num_entries;
9 BITCODE_H *entries, *hdls;
10
11 dwg_obj_ucs_control *ctrl = dwg_object_to_UCS_CONTROL (obj);
12
13 CHK_ENTITY_TYPE (ctrl, UCS_CONTROL, num_entries, BS);
14 entries = dwg_object_tablectrl_get_entries (obj, &error);
15 if (!dwg_dynapi_entity_value (ctrl, "UCS_CONTROL", "entries", &hdls, NULL))
16 fail ("UCS_CONTROL.entries");
17 for (i = 0; i < num_entries; i++)
18 {
19 if (hdls[i] == entries[i])
20 ok ("UCS_CONTROL.entries[%d]: " FORMAT_REF, i, ARGS_REF (entries[i]));
21 else
22 fail ("UCS_CONTROL.entries[%d]: " FORMAT_REF, i, ARGS_REF (entries[i]));
23 }
24 }
25