Would you please kindly point out what did I do wrong in few lines of code below?
My objective is to acquire file name of browser, pass it to IDF_IN fuction. My variable"file_name" is recongized by axlUIViewFileCreate() function but is not recognized by axlRunBatchDBProgram(....-d PTC) option. How should I handle that variable?
Any effort is much appreciated.
procedure(view_file() let( (emn_file file_name idf_result cur_db) file_name = axlDMFileBrowse(nil nil ?optFilters "MCAD file (*.emn)|*.emn") axlRunBatchDBProgram("My IDF in" "idf_in -o %s -d PTC file_name" ?reloadDB t) axlUIViewFileCreate(file_name "My EMN file" nil) )) ; end let, end procedure my IDF in
Thanks in advcance,Vinh Ta
axlRunBatchDBProgram("My IDF in" sprintf(nil, "idf_in -d PTC %s", file_name) ?reloadDB t)
Dave Elder, Tait Communications
In reply to eDave:
Thank you for the solution, it works! Would you please point me to direction how to trap error returned from idf_in?
Thank you in advance.
In reply to VTAA:
Thank you for the reply.Your help is much appreciated.