buanhui 发表于 2003-8-9 18:27:00

如何用扩展数据构造选择集

选择扩展数据为 short layerhao=1 应用程序名为textname的TEXT实体 为何不成功
但选择扩展数据应用程序名为textname的TEXT实体则成功,不知道为何?
我用ObjectARX docsamp的例子的printXdata()打印得到“(1001 textname)(1070 1)”      
struct resbuf eb,eb1,eb2,eb3;
      ads_name ssname,ss;
      char sbuf1,sbuf2;
    eb.restype=0;
      strcpy(sbuf1,"TEXT");
      eb.resval.rstring=sbuf1;
      eb.rbnext=&eb1;
      eb1.restype=-3;
      eb1.rbnext=&eb2;
      eb2.restype=1001;
      strcpy(sbuf2,"textname");
      eb2.resval.rstring=sbuf2;
      eb2.rbnext=&eb3;
      eb3.restype=1070;
      eb3.resval.rint=layerhao;
      eb3.rbnext=NULL;
      acedSSGet("X", NULL, NULL, &eb, ssname);
      long lenSS,idx;
      int rc;            
      rc = acedSSLength(ssname, &lenSS);      // Note: we pass the address of lenSS
      
      if(rc != RTNORM)
      {
                acutPrintf("\n **select false");
                return;
      }

lilin 发表于 2003-11-4 21:54:00

kk

Gxiaofeng 发表于 2003-11-4 22:35:00

扩展码不能做选择集
页: [1]
查看完整版本: 如何用扩展数据构造选择集