1 // unstable
2 #define DWG_TYPE DWG_TYPE_ASSOCARRAYPOLARPARAMETERS
3 #include "common.c"
4
5 void
api_process(dwg_object * obj)6 api_process (dwg_object *obj)
7 {
8 int error, isnew;
9 ASSOCARRAYPARAMETERS_fields;
10 BITCODE_BL numitems;
11 BITCODE_BL numrows;
12 BITCODE_BL numlevels;
13
14 Dwg_Version_Type dwg_version = obj->parent->header.version;
15 //#ifdef DEBUG_CLASSES
16 dwg_obj_assocarraypolarparameters *_obj = dwg_object_to_ASSOCARRAYPOLARPARAMETERS (obj);
17
18 CHK_ENTITY_TYPE (_obj, ASSOCARRAYPOLARPARAMETERS, aap_version, BL);
19 CHK_ENTITY_TYPE (_obj, ASSOCARRAYPOLARPARAMETERS, num_items, BL);
20 if (!dwg_dynapi_entity_value (_obj, "ASSOCARRAYPOLARPARAMETERS", "items", &items, NULL))
21 fail ("ASSOCARRAYPOLARPARAMETERS.items");
22 else
23 for (unsigned i = 0; i < num_items; i++)
24 {
25 BITCODE_BL itemloc[3];
26 CHK_SUBCLASS_TYPE (items[i], ASSOCARRAYITEM, class_version, BL);
27 if (dwg_dynapi_subclass_value (&items[i], "ASSOCARRAYITEM", "itemloc[3]", &itemloc, NULL))
28 {
29 ok ("ASSOCARRAYITEM.itemloc[0]: " FORMAT_BL, itemloc[0]);
30 ok ("ASSOCARRAYITEM.itemloc[1]: " FORMAT_BL, itemloc[1]);
31 ok ("ASSOCARRAYITEM.itemloc[2]: " FORMAT_BL, itemloc[2]);
32 }
33 else
34 fail ("ASSOCARRAYITEM.itemloc[3]");
35 CHK_SUBCLASS_TYPE (items[i], ASSOCARRAYITEM, flags, BL);
36 CHK_SUBCLASS_VECTOR_TYPE (items[i], ASSOCARRAYITEM, transmatrix, 16, BD);
37 CHK_SUBCLASS_VECTOR_TYPE (items[i], ASSOCARRAYITEM, rel_transform, 16, BD);
38 CHK_SUBCLASS_H (items[i], ASSOCARRAYITEM, h1);
39 CHK_SUBCLASS_H (items[i], ASSOCARRAYITEM, h2);
40 }
41 CHK_ENTITY_TYPE (_obj, ASSOCARRAYPOLARPARAMETERS, numitems, BL);
42 CHK_ENTITY_TYPE (_obj, ASSOCARRAYPOLARPARAMETERS, numrows, BL);
43 CHK_ENTITY_TYPE (_obj, ASSOCARRAYPOLARPARAMETERS, numlevels, BL);
44 //#endif
45 }
46