?? ch3_2commands.cpp
字號:
/////////////////////////////////////////////
// ObjectARX defined commands
#include "StdAfx.h"
#include "StdArx.h"
// This is command 'CEL'
void cel()
{
ads_name srcSS; // Source selection set
ads_name targEnt; // Target entity
int rc; // Result code
ads_point pickPt; // Used in the call to acedEntSel()
acedPrompt("\nSelect entities for layer change ");
rc = acedSSGet(NULL, NULL, NULL, NULL, srcSS);
if(rc != RTNORM)
{
acutPrintf("\nNo entities selected!! ");
return;
}
rc = acedEntSel("\nSelect target layer entity. ", targEnt, pickPt);
switch(rc)
{
case RTERROR :
acutPrintf("\nNothing selected!! ");
break;
case RTCAN :
acutPrintf("\nUser canceled. ");
break;
case RTNORM :
chgEntsLyr(targEnt, srcSS);
break;
}
// Don't forget to free the selection set
acedSSFree(srcSS);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -