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

tblsearch image

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
299 Views, 7 Replies

tblsearch image

How do you identify an image is attached but unreferenced within a dwg? There is no table to tblsearch...
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

Images are stored within the dictionary 'ACAD_IMAGE_DICT'. I haven't seen a
reliable way yet.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5609756@discussion.autodesk.com...
How do you identify an image is attached but unreferenced within a dwg?
There is no table to tblsearch...
Message 3 of 8
Anonymous
in reply to: Anonymous

Thanks for responding T.Willey
Images are stored within the dictionary 'ACAD_IMAGE_DICT'. Dictionary? How do you???
Sorry, this is a new concept so I'm a little dense. Images have been very rare and I've never heard of a dictionary before.
Could you give me a little more explanation, please.
Message 4 of 8
Anonymous
in reply to: Anonymous

PAxford said the following On 5/29/2007 10:47 AM:
> How do you identify an image is attached but unreferenced within a dwg? There is no table to tblsearch...

One way....

Select all the images in the drawing using (ssget)

Walk this selection set, grabbing the the 340 entity from each image.

Compare each 340 ename with the list of enames gathered from the
"ACAD_IMAGE_DICT" dictionary (group 350)

At that point, enames in the dictionary but not in your selection set
must not be in the drawing, but they are still "attached" to the drawing.



--
R.K. McSwain
http://rkmcswain.blogspot.com
Message 5 of 8
Anonymous
in reply to: Anonymous

Using dxf codes.

(setq Pos
(vl-position
'(3 . "ACAD_IMAGE_DICT")
(setq DictList (entget (namedobjdict)))
)
)
(setq ImgDictList (entget (cdr (nth (1+ Pos) DictList))))

Every entry numbered '3' in the 'ImgDictList' is the name of an image
associated with the drawing. The '350' entity name following it has the
properties of the image.

Beyond that I'm not much help. I don't use dictionaries really, so my help
is limited to this. Maybe someone with more experience will chime in.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5609834@discussion.autodesk.com...
Thanks for responding T.Willey
Images are stored within the dictionary 'ACAD_IMAGE_DICT'. Dictionary? How
do you???
Sorry, this is a new concept so I'm a little dense. Images have been very
rare and I've never heard of a dictionary before.
Could you give me a little more explanation, please.
Message 6 of 8
Anonymous
in reply to: Anonymous

Thanks much T.Willy! Looks to fill the need good.

R.K. McSwain there is no images to ssget. Images are attached but unreferenced. I needed a way to find out if an image was attached before I started. (See my post called 'Image question' from last week for more.

Thank you for the help.
Message 7 of 8
Anonymous
in reply to: Anonymous

Glad you got something that will work for what you need. You're welcome.

--

Tim
"A blind man lets nothing block his vision."


wrote in message news:5611106@discussion.autodesk.com...
Thanks much T.Willy! Looks to fill the need good.

R.K. McSwain there is no images to ssget. Images are attached but
unreferenced. I needed a way to find out if an image was attached before I
started. (See my post called 'Image question' from last week for more.

Thank you for the help.
Message 8 of 8
Anonymous
in reply to: Anonymous

PAxford said the following On 5/30/2007 10:21 AM:

>
> R.K. McSwain there is no images to ssget. Images are attached but unreferenced. I needed a way to find out if an image was attached before I started. (See my post called 'Image question' from last week for more.
>

Well then it's even more simple. Just check for enames in the
"ACAD_IMAGE_DICT" dictionary.


--
R.K. McSwain
http://rkmcswain.blogspot.com

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

Post to forums  

Autodesk Design & Make Report

”Boost