Jump to content

Help to find an image file in a folder .....


Recommended Posts

Posted

Hi dear friends.

I need some routines about searching an image file in a folder whit the name i introduced before and tell me it is in that folder or not.

All this progress must be done in Auto cad.

Can anyone help me about this?

Posted

You may use the FINDFILE function:

 

(findfile (strcat MyPath MyImageFile))

Regards,

Mircea

Posted

Other solution is to list the images from your folder and check if the one that you are looking for is in that list:

(vl-load-com)
(setq theImages (vl-directory-files MyPath "*.JPG" 1))
(member MyImageFile theImages)

 

Regards,

Mircea

Posted
You may use the FINDFILE function:

 

(findfile (strcat MyPath MyImageFile))

Regards,

Mircea

 

That 's right.

I had forgotten this function.

It works good.

Thanx for helping.

Good Lock.

Posted
Other solution is to list the images from your folder and check if the one that you are looking for is in that list:

(vl-load-com)
(setq theImages (vl-directory-files MyPath "*.JPG" 1))
(member MyImageFile theImages)

 

Regards,

Mircea

 

Thanx My Dear Friend.

I Should practice more Creativity in my Programming.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...