|
[code]在下文中一共展示了acutPrintf函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: acutPrintf
▲ 点赞 9 ▼
void
ArxDbgUiTdcSysReactors::doTransReactor()
{
if (m_doTrans) {
if (m_transReactor == NULL) {
m_transReactor = new ArxDbgTransactionReactor;
acutPrintf(_T("\nTransaction Reactor Spy Turned On ..."));
ArxDbgUiTdcSysReactors::attachTransactionReactorToAll();
}
}
else {
if (m_transReactor != NULL) {
ArxDbgUiTdcSysReactors::removeTransactionReactorFromAll();
delete m_transReactor;
m_transReactor = NULL;
acutPrintf(_T("\nTransaction Reactor Spy Turned Off ..."));
}
}
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:19,代码来源:ArxDbgUiTdcSysReactors.cpp
示例2: initApp
▲ 点赞 7 ▼
void
initApp()
{
acutPrintf(_T("AsdkProfileSample ARX Test; Type ProfileSample to execute"));
// register a command with the AutoCAD command mechanism
//
acedRegCmds->addCommand(_T("AsdkProfileSample_COMMANDS"), _T("AsdkProfileSample"), _T("ProfileSample"), ACRX_CMD_MODAL, aFunction);
}
开发者ID:FengLuanShuangWu,项目名称:AutoCADPlugin-HeatSource,代码行数:10,代码来源:AsdkProfileSample.cpp
示例3: acutPrintf
▲ 点赞 5 ▼
//
// Obviously, we need to delete the database reactor associated
// with the destroyed doc.
//
void CDocReactor::documentToBeDestroyed(AcApDocument* pDoc)
{
#ifndef NDEBUG
acutPrintf("\ndocumentToBeDestroyed: %s.\n", pDoc->fileName());
acedPostCommandPrompt();
#endif
detachDbReactor(pDoc->database());
if(gpDlg)
objDisplay("", NULL);
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:14,代码来源:modeless.cpp
示例4: LSS10
▲ 点赞 2 ▼
void LSS10()
{
CLogger::Print(_T("-------------| START LOGGING LESSONS 10 |--------------"));
AcDbObjectId idCircle;
Acad::ErrorStatus es;
if (Acad::eOk != (es = createCircle(idCircle))) {
acutPrintf(ACRX_T("Fail to call createCircle() function - Error: %s")
, acadErrorStatusText(es));
}
}
开发者ID:vuonganh1993,项目名称:arxlss,代码行数:10,代码来源:LSS10.cpp
示例5: ads_regen
▲ 点赞 1 ▼
//If the draworder has been changed, regen the drawing
//
void adskDocReactor::documentLockModeChanged(AcApDocument* pDoc, AcAp::DocLockMode myPreviousMode,
AcAp::DocLockMode myCurrentMode, AcAp::DocLockMode currentMode, const char* pGlobalCmdName)
{
if(pGlobalCmdName[0]=='#'&& gbDraworderChanged == true)
{
ads_regen();
acutPrintf("regened change mode");
gbDraworderChanged = false;
}
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:12,代码来源:adskDocReactor.cpp
示例6: setUseDragData
▲ 点赞 1 ▼
// Used to set the AsdkPoly static variable mUseDragData for determining
// whether AsdkPoly will use the no-clone-for-dragging mechanism or not.
//
void setUseDragData()
{
int val, status;
for(;;) {
acutPrintf("\nNew value for USEDRAGDATA <%s>: ",
AsdkPoly::useDragData() ? "1" : "0");
status = acedGetInt(NULL, &val);
if (status != RTNORM)
break;
if (val != 0 && val != 1) {
acutPrintf("\nValue must be 0 or 1");
continue;
}
AsdkPoly::setUseDragData(val == 1 ? true : false);
break;
}
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:22,代码来源:command.cpp
示例7: printReactorMessage
▲ 点赞 1 ▼
void
ArxDbgEditorReactor::sysVarChanged(const char* varName, Adesk::Boolean success)
{
CString str;
str.Format(_T("Sysvar Changed: %s"), varName);
printReactorMessage(str);
if (success != Adesk::kTrue)
acutPrintf(_T("\n*** SYSVAR NOT CHANGED SUCCESSFULLY!!! ***"));
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:10,代码来源:ArxDbgEditorReactor.cpp
示例8: loadGEModule
▲ 点赞 1 ▼
// 加载图元模块
bool loadGEModule()
{
acutPrintf( _T( "\n-------- 加载图元模块 ------------\n" ) );
if( !loadArxModule( _T( "MineGE" ) ) ) return false;
if( !loadArxModule( _T( "GasGE" ) ) ) return false;
if( !loadArxModule( _T( "ContourGE" ) ) ) return false;
return true;
}
开发者ID:kanbang,项目名称:myexercise,代码行数:11,代码来源:acrxEntryPoint.cpp
示例9: printReactorMessage
▲ 点赞 1 ▼
void
ArxDbgTransientEntReactor::copied(const AcDbObject* obj, const AcDbObject* newObj)
{
CString str;
printReactorMessage(_T("Copied"), obj);
acutPrintf(_T("\n%-15s : {%-18s: %s, %s} "), _T(""), _T("New Object"),
ArxDbgUtils::objToClassStr(newObj), ArxDbgUtils::objToHandleStr(newObj, str));
ArxDbgUiTdcTransientReactors::doStateDboxCopied(obj, newObj);
}
开发者ID:FengLuanShuangWu,项目名称:AutoCADPlugin-HeatSource,代码行数:10,代码来源:ArxDbgTransientEntReactor.cpp
示例10: initApp
▲ 点赞 1 ▼
//////////////////////////////////////////////////////////////
//
// Rx interface
//
//////////////////////////////////////////////////////////////
void initApp()
{
acedRegCmds->addCommand( /*NOXLATE*/"ASDK_PROGRESSBAR", // Group name
/*NOXLATE*/"ASDK_PROGBAR", // Global function name
"progbar", // Local function name
ACRX_CMD_MODAL, // Type
&Test ); // Function pointer
acutPrintf( ".OK!\n" );
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:15,代码来源:rxtemplt.cpp
示例11: CGDCH03AddLayer
▲ 点赞 1 ▼
//-------------------------------------------------------------------------------------------
//
// 功能: 向层表中添加记录(创建新层)
//
//
// 作者:Qin H.X.
//
// 日期:200709
//
// 历史:无
//
//----------------------------------------------------------------------------------------------
// - CGDCH03.AddLayer command (do not rename)
static void CGDCH03AddLayer(void)
{
//先声明一个空的层表指针
AcDbLayerTable *pLayerTbl;
//通过当前图形数据库获取层表对象指针
//打开层表为写入状态
acdbHostApplicationServices()->workingDatabase() ->getSymbolTable(pLayerTbl, AcDb::kForWrite);
//判断层是否已经存在
if(!pLayerTbl->has(_T("MyLayer"))) {
//新层表记录
AcDbLayerTableRecord *pLayerTblRcd= new AcDbLayerTableRecord;
pLayerTblRcd->setName(_T("MyLayer")); //设定图层名
pLayerTblRcd->setIsFrozen(0); // 图层解冻
pLayerTblRcd->setIsOff(0); // 打开图层
pLayerTblRcd->setVPDFLT(0); // 使用默认视口
pLayerTblRcd->setIsLocked(0); // 图层解锁
// AcCmColor是ACAD颜色管理类
AcCmColor color;
color.setColorIndex(1);
// 图层颜色为红色
pLayerTblRcd->setColor(color);
// 为给新图层设置线型,要得到线型表记录的ID。
// 以下的代码演示如何得到并操作记录ID
AcDbLinetypeTable *pLinetypeTbl;
AcDbObjectId ltId;
acdbHostApplicationServices()->workingDatabase()->getSymbolTable(pLinetypeTbl, AcDb::kForRead);
if ((pLinetypeTbl->getAt(_T("DASHED"), ltId))!= Acad::eOk) {
acutPrintf(_T("\n未发现DASHED线型使用CONTINUOUS线型"));
// 每一个不完全空的图形数据库的线型表中都有线型名为CONTINUOUS 的默认记录
pLinetypeTbl->getAt(_T("CONTINUOUS"), ltId);
}
pLinetypeTbl->close();
pLayerTblRcd->setLinetypeObjectId(ltId);
pLayerTbl->add(pLayerTblRcd);
pLayerTblRcd->close();
pLayerTbl->close();
} else {
pLayerTbl->close();
acutPrintf(_T("\n层已经存在"));
}
}
开发者ID:guchanghai,项目名称:Cut,代码行数:56,代码来源:acrxEntryPoint.cpp
示例12: acutPrintf
▲ 点赞 1 ▼
HRESULT
AsdkSheetSet::addSheetSelectionSet(char* selSetName, // Name of selection set
char* selSetDesc, // Description
IAcSmSheetSelSet **pSelSet) // Output pointer to selection set
{
if(FAILED(isInitialized("addSheetSelectionSet")))
return E_FAIL;
// lock the the database first before doing any operation on it
if (FAILED(LockDatabase()))
{
acutPrintf("\n Database lock failed!");
return E_FAIL;
}
CComPtr<IAcSmSheetSelSets> pSelSetS = NULL;
if (FAILED(m_pSheetSet->GetSheetSelSets(&pSelSetS)) || (pSelSetS == NULL))
{
acutPrintf("\n addSheetSelectionSet failed! Cannot get selection sets!!");
return E_FAIL;
}
// add a selection set to the selection set collection of the sheet set
CComBSTR selSet(selSetName);
CComBSTR selDesc(selSetDesc);
if (FAILED (pSelSetS->Add(selSet, selDesc, pSelSet)))
{
acutPrintf("\n addSheetSelectionSet failed! Cannot add selection set %s!!", selSetName);
return E_FAIL;
}
// Unlock database
if (FAILED(UnlockDatabase()))
{
acutPrintf("\n Cannot unlock database");
return E_FAIL;
}
return S_OK;
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:43,代码来源:SS.cpp
示例13: getYorN
▲ 点赞 1 ▼
// get yes or no choice from the user
bool getYorN(char *msg)
{
int res, retcode;
char kw[4];
acutPrintf("\n %s [Yes/No]", msg);
do
{
acedInitGet(RSG_NONULL, "Yes No");
retcode = acedGetInt(NULL, &res);
switch (retcode)
{
case RTKWORD:
if(acedGetInput(kw) != RTNORM)
{
acutPrintf("\nError getting Yes/No choice");
return false;
}
if(strcmp(kw, "Yes") == 0)
{
return true;
}
else if(strcmp(kw, "No") == 0)
{
return false;
}
else
{
acutPrintf("\nKeyword Error!!");
return false;
}
break;
default:
acutPrintf("\n Enter <Yes/No> :");
break;
}
} while(retcode != RTKWORD);
return true;
}
开发者ID:kevinzhwl,项目名称:ObjectARXMod,代码行数:44,代码来源:SS.cpp
示例14: brepDump
▲ 点赞 1 ▼
AcBr::ErrorStatus
brepDump(const AcBrBrep& brepEntity)
{
AcBr::ErrorStatus returnValue = AcBr::eOk;
// Validate the brep vs. the brep "owner"
AcBrBrep brepOwner;
returnValue = brepEntity.getBrep(brepOwner);
if (returnValue != AcBr::eOk) {
acutPrintf("\n Error in AcBrBrep::getBrep:");
errorReport(returnValue);
return returnValue;
}
if (!brepEntity.isEqualTo(&brepOwner)) {
acutPrintf("\n Brep owner is out of sync with brep!");
return (AcBr::ErrorStatus)Acad::eAmbiguousOutput;
}
// Query traversal direction for brep dump
Adesk::Boolean downwards = Adesk::kTrue;
char opt[128];
while (Adesk::kTrue) {
acutPrintf("\nSelect Traversal Direction for Brep Dump: ");
acedInitGet(NULL, "Upwards Downwards");
if (acedGetKword("Upwards/<Downwards>: ", opt) == RTCAN)
return returnValue;
// Map the user input to a valid traversal direction
if ((strcmp(opt, "Downwards") == 0) || (strcmp(opt, "") == 0)) {
downwards = Adesk::kTrue;
break;
} else if ((strcmp(opt, "Upwards") == 0)) {
downwards = Adesk::kFalse;
break;
}
}
// Switchable dump based on upwards vs. downwards traversal
if (downwards) brepDumpDown(brepEntity);
else brepDumpUp(brepEntity);
return returnValue;
}
开发者ID:Bohr27,项目名称:ObjectARXCore,代码行数:43,代码来源:brbdump.cpp
示例15: acutPrintf
▲ 点赞 1 ▼
void
ArxDbgDatabaseReactor::printReactorMessage(const AcDbDatabase* db, LPCTSTR event, const AcDbObject* obj) const
{
CString str, str2;
ArxDbgUtils::objToHandleStr(obj, str);
str2.Format(_T("<DB REACTOR: %p>"), db);
acutPrintf(_T("\n%-15s : <%-18s: %s, %s> "), str2, event,
ArxDbgUtils::objToClassStr(obj), str);
}[/code] |
|