ads_name ss; //执行预选 好像可以无视PICKSTYLE变量 if (RTNORM != acedSSGet(_T("I"),NULL,NULL,NULL,ss)) { //预选失败执行手动选择 if (RTNORM != acedSSGet(NULL,NULL,NULL,NULL,ss)) { return; } } Adesk::Int32 nLength=0; acedSSLength(ss,&nLength); acutPrintf(_T("\n共选择了%d个对象!"),nLength); //亮显对象 acedSSSetFirst(ss,NULL); //acedCommand(RTSTR,_T("select"),RTPICKS,ss,RTSTR,_T(""),RTNONE); //acedCommand(RTSTR,_T("pselect"),RTPICKS,ss,RTSTR,_T(""),RTNONE); acedSSFree(ss);
注:添加命令需要添加 ACRX_CMD_USEPICKSET | ACRX_CMD_REDRAW
原文地址:https://www.cnblogs.com/edata/p/10784033.html
时间: 2024-10-19 20:07:27