andy_lee Posted May 17, 2014 Share Posted May 17, 2014 (edited) Sometimes, some routine need ET , If routine call command is "test" , so call "test" , frist, judge ET,if not installed , Pop-up prompts. Edited May 17, 2014 by andy_lee Quote Link to comment Share on other sites More sharing options...
Snownut Posted May 17, 2014 Share Posted May 17, 2014 Just what is ET, a LISP program, .net application, need more information. Quote Link to comment Share on other sites More sharing options...
ymg3 Posted May 17, 2014 Share Posted May 17, 2014 Snownut, Express Tools How aout simply issuing command EXPRESSTOOLS ymg Quote Link to comment Share on other sites More sharing options...
andy_lee Posted May 19, 2014 Author Share Posted May 19, 2014 (if (findfile "acetutil.arx") Problem has been resolved! Quote Link to comment Share on other sites More sharing options...
hmsilva Posted May 19, 2014 Share Posted May 19, 2014 (if (findfile "acetutil.arx") Problem has been resolved! andy_lee, with (if (findfile "acetutil.arx") you are only testing the file existence at your system, to test if loaded, try (if (member "acetutil.arx" (arx)) HTH Henrique Quote Link to comment Share on other sites More sharing options...
andy_lee Posted May 19, 2014 Author Share Posted May 19, 2014 andy_lee,with (if (findfile "acetutil.arx") you are only testing the file existence at your system, to test if loaded, try (if (member "acetutil.arx" (arx)) HTH Henrique Thank you so much!hmsilva, That's good! Quote Link to comment Share on other sites More sharing options...
hmsilva Posted May 19, 2014 Share Posted May 19, 2014 You're welcome, andy lee! Glad I could help Henrique Quote Link to comment Share on other sites More sharing options...
andy_lee Posted May 19, 2014 Author Share Posted May 19, 2014 You're welcome, andy lee!Glad I could help Henrique Good friend! Could like this (if (or (member "acetutil.arx" (arx)) (and (findfile "acetutil.arx")(arxload "acetutil.arx"))) Quote Link to comment Share on other sites More sharing options...
hmsilva Posted May 19, 2014 Share Posted May 19, 2014 Maybe something like this (if (not (member "acetutil.arx" (arx)));; test if loaded (if (findfile "acetutil.arx");; if not, test if find (arxload "acetutil.arx");; if find, load (prompt "\n\"acetutil.arx\" wasn't found on the system!!!");; prompt ) (prompt "\n\"acetutil.arx\" was already loaded!!!");; prompt ) HTH Henrique Quote Link to comment Share on other sites More sharing options...
andy_lee Posted May 19, 2014 Author Share Posted May 19, 2014 Maybe something like this (if (not (member "acetutil.arx" (arx)));; test if loaded (if (findfile "acetutil.arx");; if not, test if find (arxload "acetutil.arx");; if find, load (prompt "\n\"acetutil.arx\" wasn't found on the system!!!");; prompt ) (prompt "\n\"acetutil.arx\" was already loaded!!!");; prompt ) HTH Henrique Without such redundancy . Thank a lot! Quote Link to comment Share on other sites More sharing options...
ReMark Posted May 19, 2014 Share Posted May 19, 2014 Whatever happened to looking at your screen or is that too taxing? Quote Link to comment Share on other sites More sharing options...
hmsilva Posted May 19, 2014 Share Posted May 19, 2014 Without such redundancy . Thank a lot! andy lee, it's not redundancy, is just a way to get feedback from the test function... Henrique Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.