From 18b38f1a0b49f8ca7a635b56606052ee7cc06229 Mon Sep 17 00:00:00 2001 From: liyf Date: Thu, 26 Dec 2019 11:11:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cad=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HEZON_ITK/bs_sign_cad.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/HEZON_ITK/bs_sign_cad.cpp b/HEZON_ITK/bs_sign_cad.cpp index 26f756c..95cb40b 100644 --- a/HEZON_ITK/bs_sign_cad.cpp +++ b/HEZON_ITK/bs_sign_cad.cpp @@ -11,7 +11,7 @@ static void replace_dataset_named_reference(tag_t dataset_tag, tag_t old_file, AOM_lock(old_file); ITKCALL(IMF_replace_file_and_get_new_tag(old_file, new_file_path, - FALSE, &new_file_tag)); + TRUE, &new_file_tag)); AOM_lock(dataset_tag); @@ -79,10 +79,10 @@ int bs_sign_cad(EPM_action_message_t msg) AOM_UIF_ask_value(forms[0], k->second.c_str(), &val); dic[convert_to_cstring(k->first.c_str())] = convert_to_cstring(val); } - bool result= test->signCad(convert_to_cstring(path.str().c_str()), convert_to_cstring(paras["title"].c_str()), dic); - if(result) + string result= ConvertToString(test->signCad(convert_to_cstring(path.str().c_str()), convert_to_cstring(paras["title"].c_str()), dic)); + if(result.length()) { - replace_dataset_named_reference(tags[j], ref, path.str().c_str(), "JD2_dwg"); + replace_dataset_named_reference(tags[j], ref, result.c_str(), "JD2_dwg"); } } }