Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

image file name

5 REPLIES 5
Reply
Message 1 of 6
Anonymous
150 Views, 5 Replies

image file name

How do I identify or search on an image file name?

I want to write a routine that will not reload an image if it is already
loaded.

Thanks,
Tim C
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Anonymous

Hi Tim,
As far as I know, you can't reload an image that is not already loaded, you
have to attach it first.
BillZ
Tim C. wrote in message ...
>How do I identify or search on an image file name?
>
>I want to write a routine that will not reload an image if it is already
>loaded.
>
>Thanks,
>Tim C
>
>
Message 3 of 6
Anonymous
in reply to: Anonymous

My lisp has a routine that removes ALL images before attaching a new image.
I was wondering if there was a way of comparing the image file name that was
attached to the image file name to be attached to possible avoid
reattaching the same image.
"Bill Zondlo" wrote in message
news:06F8364A72E1836A8C7C4EAA2CDE3A00@in.WebX.maYIadrTaRb...
> Hi Tim,
> As far as I know, you can't reload an image that is not already loaded,
you
> have to attach it first.
> BillZ
> Tim C. wrote in message ...
> >How do I identify or search on an image file name?
> >
> >I want to write a routine that will not reload an image if it is already
> >loaded.
> >
> >Thanks,
> >Tim C
> >
> >
>
>
Message 4 of 6
Anonymous
in reply to: Anonymous

Tim,

Try this:
(cdr(assoc 1(entget(cdr(assoc 340(entget(ssname imagelist(setq i(1- i)))))))))

Create imagelist with ssget.

HTH
Joe
Message 5 of 6
Anonymous
in reply to: Anonymous

In R14,
They are a dictionary object.>>>>>>>>
(setq grp (dictsearch (namedobjdict) "ACAD_GROUP"));;;;;
(setq e (entget (cdr (assoc 330 grp))))
>>>>>>>>>>>
You will see (3 . "ACAD_IMAGE_VARS") under e.>>>>>
>>>>>>>>>>
>>>>>>>>
Bill Z
Message 6 of 6
Anonymous
in reply to: Anonymous

Actually,
(dictsearch (namedobjdict) "ACAD_IMAGE_DICT") "I'm just learning dictionaries.
The Assoc 3's are the names, Assoc 350's are the entity names.
BillZ

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost