// Initialization function called from acrxEntryPoint during // kInitAppMsg case. This function is used to add commands // to the command stack as well as adding protocol extension // objects to classes in and custom classes to the ACRX // runtime class hierarchy. // void initApp() { acrxRegisterService("AsdkTemperature"); AsdkEntTemperature::rxInit(); acrxBuildClassHierarchy(); pDefaultTemp = new AsdkDefaultTemperature(); pRegionTemp = new AsdkRegionTemperature(); pCircleTemp = new AsdkCircleTemperature(); // Add the protocol extension objects to the appropriate // AcRxClass objects // AcDbEntity::desc()->addX(AsdkEntTemperature::desc(), pDefaultTemp); AcDbRegion::desc()->addX(AsdkEntTemperature::desc(), pRegionTemp); AcDbCircle::desc()->addX(AsdkEntTemperature::desc(), pCircleTemp); acedRegCmds->addCommand("ASDK_TEMPERATURE_APP", "ASDK_ENERGY", "ENERGY", ACRX_CMD_TRANSPARENT, energy); }
AcRx::AppRetCode ArxDbgApp::initApp() { acrxUnlockApplication(m_acadAppPtr); acrxDynamicLinker->registerAppMDIAware(m_acadAppPtr); // get the name of this app so we can find where other // things are located. CString appFileName = acedGetAppName(); char dir[_MAX_DIR], drive[_MAX_DRIVE], path[_MAX_PATH]; _splitpath(appFileName, drive, dir, NULL, NULL); _makepath(path, drive, dir, NULL, NULL); m_appPath = path; CWnd* splashScreen = startSplashScreen(); registerClasses(); registerCommands(); acrxBuildClassHierarchy(); m_appServicePtr = acrxRegisterService("ArxDbgServices"); ArxDbgAppEditorReactor::getInstance(); MapTestReactor::getInstance(); registerDialogExtensions(); registerAppMenu(); endSplashScreen(splashScreen); m_didInit = true; return AcRx::kRetOK; }
virtual AcRx::AppRetCode On_kInitAppMsg ( void* pkt ) { AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg ( pkt ) ; acrxRegisterService( FFC_GE_PLUGIN_SERVICE_NAME ); return ( retCode ) ; }
virtual AcRx::AppRetCode On_kInitAppMsg ( void* pkt ) { AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg ( pkt ) ; // 注册服务 acrxRegisterService( ARX_VNGGEN_SERVICE_NAME ); //acutPrintf(_T("\nARX_VNGGen::On_kInitAppMsg\n")); return ( retCode ) ; }
virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) { // TODO: Load dependencies here // You *must* call On_kInitAppMsg here AcRx::AppRetCode retCode =AcRxArxApp::On_kInitAppMsg (pkt) ; ReactorHelper::CreateSelectedGE_EditorReactor(); acrxRegisterService( VENT_TVNS_SERVICE_NAME ); return (retCode) ; }
virtual AcRx::AppRetCode On_kInitAppMsg ( void* pkt ) { AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg ( pkt ) ; // 注册服务 acrxRegisterService( DRAW_VENT_CMD_SERVICE_NAME ); acutPrintf( _T( "\nDrawVentCmd::On_kLoadAppMsg\n" ) ); return ( retCode ) ; }
virtual AcRx::AppRetCode On_kInitAppMsg ( void* pkt ) { AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg ( pkt ) ; ReactorHelper::CreateSelectedGE_EditorReactor(); // 注册服务 acrxRegisterService( VENT_EVALUATE_SERVICE_NAME ); //AfxInitRichEdit2(); acutPrintf( _T( "\nVentEvaluate::On_kInitAppMsg\n" ) ); return ( retCode ) ; }
virtual AcRx::AppRetCode On_kInitAppMsg ( void* pkt ) { AcRx::AppRetCode retCode = AcRxArxApp::On_kInitAppMsg ( pkt ) ; acrxRegisterService( VVLOADER_SERVICE_NAME ); // 初始化可视化系统 if( !initDrawSystem() ) return AcRx::kRetError; // 加载图元模块 if( !loadGEModule() ) return AcRx::kRetError; // 加载命令模块 if( !loadCmdModule() ) return AcRx::kRetError; // 加载专业功能模块 if( !loadFunctionModule() ) return AcRx::kRetError; acutPrintf( _T( "\nVVLoader::On_kInitAppMsg\n" ) ); return ( retCode ) ; }