|
@@ -62,28 +62,28 @@ cmdMainProcess::~cmdMainProcess()
|
|
|
* @reviser
|
|
|
* @date
|
|
|
*/
|
|
|
-void cmdMainProcess::iniACIS()
|
|
|
-{
|
|
|
- unlock_license();
|
|
|
- exit_on_bad_outcome(api_start_modeller(0));//启动ACIS,生成内部数据结构
|
|
|
- exit_on_bad_outcome(api_initialize_3dpm_bridge());
|
|
|
- printf("Successful initialization\n");
|
|
|
-}
|
|
|
-/**
|
|
|
-* @brief closeACIS
|
|
|
-* Delete ACIS
|
|
|
-* @param[in]
|
|
|
-* @return
|
|
|
-* @author qiyan
|
|
|
-* @date 2022-11-16
|
|
|
-* @reviser
|
|
|
-* @date
|
|
|
-*/
|
|
|
-void cmdMainProcess::closeACIS()
|
|
|
-{
|
|
|
- exit_on_bad_outcome(api_terminate_3dpm_bridge());
|
|
|
- exit_on_bad_outcome(api_stop_modeller());//删除内部数据结构
|
|
|
-}
|
|
|
+//void cmdMainProcess::iniACIS()
|
|
|
+//{
|
|
|
+// unlock_license();
|
|
|
+// exit_on_bad_outcome(api_start_modeller(0));//启动ACIS,生成内部数据结构
|
|
|
+// exit_on_bad_outcome(api_initialize_3dpm_bridge());
|
|
|
+// printf("Successful initialization\n");
|
|
|
+//}
|
|
|
+///**
|
|
|
+//* @brief closeACIS
|
|
|
+//* Delete ACIS
|
|
|
+//* @param[in]
|
|
|
+//* @return
|
|
|
+//* @author qiyan
|
|
|
+//* @date 2022-11-16
|
|
|
+//* @reviser
|
|
|
+//* @date
|
|
|
+//*/
|
|
|
+//void cmdMainProcess::closeACIS()
|
|
|
+//{
|
|
|
+// exit_on_bad_outcome(api_terminate_3dpm_bridge());
|
|
|
+// exit_on_bad_outcome(api_stop_modeller());//删除内部数据结构
|
|
|
+//}
|
|
|
|
|
|
/*
|
|
|
* @brief:set boostjsonobject into cmdmainprocess
|
|
@@ -108,7 +108,7 @@ void cmdMainProcess::setJsonObject(boostJsonObject *object)
|
|
|
*/
|
|
|
bool cmdMainProcess::CreateProcess_(string pathGeo)
|
|
|
{
|
|
|
- iniACIS();
|
|
|
+ //iniACIS();
|
|
|
//1.--read cad surf parameter
|
|
|
//Get ENTITY_LIST;
|
|
|
ENTITY_LIST Whole_ents;
|
|
@@ -246,7 +246,7 @@ bool cmdMainProcess::CreateProcess_(string pathGeo)
|
|
|
printf("tcoedges count is : %d\n", tcoedges_list.count());
|
|
|
|
|
|
|
|
|
- closeACIS();
|
|
|
+ //closeACIS();
|
|
|
return true;
|
|
|
}
|
|
|
/**
|
|
@@ -267,7 +267,7 @@ bool cmdMainProcess::CreateProcess_(string pathGeo, string pathParam)
|
|
|
// Note that 3DPM-Hexa does not respect the input surface mesh //3dpm-hexa不遵循曲面网格
|
|
|
// If USE_HEXA is set to 1,
|
|
|
// then both APPLY_PERIODICITY and USE_LOCAL_PHYSICAL_SIZE are set to 0
|
|
|
- iniACIS();
|
|
|
+ //iniACIS();
|
|
|
sm->sendClient->sendMsg(object->ToJson("log","1.--read cad surf parameter"));
|
|
|
//1.--read cad surf parameter
|
|
|
//Get ENTITY_LIST;
|
|
@@ -556,7 +556,7 @@ bool cmdMainProcess::CreateProcess_(string pathGeo, string pathParam)
|
|
|
msg_str.clear();
|
|
|
msg_str.append("7. Termination");
|
|
|
sm->sendClient->sendMsg(object->ToJson("log",msg_str));
|
|
|
- closeACIS();
|
|
|
+ //closeACIS();
|
|
|
if(crw!=NULL)
|
|
|
{
|
|
|
delete crw;
|