(root)/
libredwg-0.13/
test/
unit-testing/
blockgriplocationcomponent.c
       1  #define DWG_TYPE DWG_TYPE_BLOCKGRIPLOCATIONCOMPONENT
       2  #include "common.c"
       3  
       4  void
       5  api_process (dwg_object *obj)
       6  {
       7    int error, isnew;
       8    Dwg_EvalExpr evalexpr;
       9    // AcDbBlockGripExpr
      10    BITCODE_BL grip_type;
      11    BITCODE_T
      12    grip_expr; // one of: X Y UpdatedX UpdatedY DisplacementX DisplacementY
      13  
      14    Dwg_Version_Type dwg_version = obj->parent->header.version;
      15    dwg_obj_blockgriplocationcomponent *_obj
      16        = dwg_object_to_BLOCKGRIPLOCATIONCOMPONENT (obj);
      17  
      18    // AcDbEvalExpr
      19    CHK_EVALEXPR (BLOCKGRIPLOCATIONCOMPONENT);
      20    // AcDbBlockGripExpr
      21    CHK_ENTITY_TYPE (_obj, BLOCKGRIPLOCATIONCOMPONENT, grip_type, BL);
      22    CHK_ENTITY_UTF8TEXT (_obj, BLOCKGRIPLOCATIONCOMPONENT, grip_expr);
      23  }