自己调整CAD实体的绘制顺序代码

ads_name  ssname;
     Acad::ErrorStatus rt = acdbGetAdsName(ssname,ZZId);
     struct resbuf * cmdlist;
     cmdlist = acutBuildList(RTSTR,_T("draworder"),RTENAME,ssname,RTSTR,"",RTSTR,"B",0);
     if (cmdlist == NULL)
     {
      acedSSFree(ssname);//释放选择集
      return FALSE;
     }
     acedCmd(cmdlist);
     acutRelRb(cmdlist);
     ads_printf( _T("\nDRAWORDER test!" ));

你可能感兴趣的:(基本功)