From 8e6d987d46ae7977e25309f22bd6989e2536e6aa Mon Sep 17 00:00:00 2001 From: liyf Date: Thu, 7 May 2020 17:33:36 +0800 Subject: [PATCH] =?UTF-8?q?cad=E7=AD=BE=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- HEZON_ITK/bs_sign_cad.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 974af6d..f209ca6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ # ---> C++ # Prerequisites *.d - +*.sdf # Compiled Object files *.slo *.lo diff --git a/HEZON_ITK/bs_sign_cad.cpp b/HEZON_ITK/bs_sign_cad.cpp index afc7fe1..2e9dbb9 100644 --- a/HEZON_ITK/bs_sign_cad.cpp +++ b/HEZON_ITK/bs_sign_cad.cpp @@ -69,6 +69,9 @@ int bs_sign_cad(EPM_action_message_t msg) if(ref) { IMF_ask_original_file_name2(ref, &name); + string temp = name; + if (temp.find(".dwg") == -1) + continue; stringstream path; path << tempdir <<"\\"<< newGUID() << name; printf("path:%s\n", path.str().c_str());