Jump to content
andy_lee

Judge ET tool, if not installed, not loader and prompt.

Recommended Posts

andy_lee

Sometimes, some routine need ET ,

If routine call command is "test" , so call "test" , frist, judge ET,if not installed , Pop-up prompts.

Edited by andy_lee

Share this post


Link to post
Share on other sites
Snownut

Just what is ET, a LISP program, .net application, need more information.

Share this post


Link to post
Share on other sites
ymg3

Snownut,

 

Express Tools

 

How aout simply issuing command EXPRESSTOOLS

 

ymg

Share this post


Link to post
Share on other sites
andy_lee

 (if (findfile "acetutil.arx")

 

Problem has been resolved!

Share this post


Link to post
Share on other sites
hmsilva
 (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

Share this post


Link to post
Share on other sites
andy_lee
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!

Share this post


Link to post
Share on other sites
hmsilva

You're welcome, andy lee!

Glad I could help

 

Henrique

Share this post


Link to post
Share on other sites
andy_lee
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")))

Share this post


Link to post
Share on other sites
hmsilva

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

Share this post


Link to post
Share on other sites
andy_lee
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!

Share this post


Link to post
Share on other sites
ReMark

Whatever happened to looking at your screen or is that too taxing?

Share this post


Link to post
Share on other sites
hmsilva
Without such redundancy . Thank a lot!

andy lee,

it's not redundancy, is just a way to get feedback from the test function...

 

Henrique

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×