1 #define DWG_TYPE DWG_TYPE_BLOCKALIGNMENTPARAMETER
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 i;
9   BLOCK2PTPARAMETER_fields;
10   BITCODE_B align_perpendicular;
11 
12   Dwg_Version_Type dwg_version = obj->parent->header.version;
13   dwg_obj_blockalignmentparameter *_obj = dwg_object_to_BLOCKALIGNMENTPARAMETER (obj);
14 
15   CHK_EVALEXPR (BLOCKALIGNMENTPARAMETER);
16   // AcDbBlockElement
17   CHK_ENTITY_UTF8TEXT (_obj, BLOCKALIGNMENTPARAMETER, name);
18   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, be_major, BL);
19   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, be_minor, BL);
20   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, eed1071, BL);
21   // AcDbBlockParameter
22   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, show_properties, B);
23   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, chain_actions, B);
24   // AcDbBlock2PtParameter
25   CHK_ENTITY_3RD (_obj, BLOCKALIGNMENTPARAMETER, def_basept);
26   CHK_ENTITY_3RD (_obj, BLOCKALIGNMENTPARAMETER, def_endpt);
27   BLOCKPARAMETER_PropInfo (prop1)
28   BLOCKPARAMETER_PropInfo (prop2)
29   BLOCKPARAMETER_PropInfo (prop3)
30   BLOCKPARAMETER_PropInfo (prop4)
31   CHK_ENTITY_VECTOR_TYPE (_obj, BLOCKALIGNMENTPARAMETER, prop_states, 4, BL);
32   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, parameter_base_location, BS);
33   // AcDbBlockAlignmentParameter
34   CHK_ENTITY_TYPE (_obj, BLOCKALIGNMENTPARAMETER, align_perpendicular, B);
35 }
36