|
|
|
@ -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");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|