How to findout what's gooing on with an inserted raster image ? Please help !

How to findout what's gooing on with an inserted raster image ? Please help !

Anonymous
Not applicable
190 Views
0 Replies
Message 1 of 1

How to findout what's gooing on with an inserted raster image ? Please help !

Anonymous
Not applicable
Hi everybody,

I need a way to findout if a raster image is "Loaded", "Unloaded" or "Not
found". The ideea behind this is that we work on drawings for clients that
do not want us to change the paths for their Xrefs and Images. But in order
to be able to work on those drawings and see the attachments they use, we
copy the external references in another folder, which we declare under a
PROJECT_NAME name in Project Files Search Path. After we set the
PROJECT_NAME as "Set current" and reload the Xrefs and/or the Images, they
become "Loaded" from the new location. This program is running by it self on
each and every drawing we are opening. Between other things, it checks if
there are Xrefs and/or Images with broken links. So each and every time I
open a drawing that has the images loaded from the original path or from
another location, I am not able to see if the images are loaded or not.
There is no such property like Status or something for Xrefs or Image
objects, that would be so easy to check in VisualLISP and I really don't
understand why, because this seems to be the most important thing that
somebody would want to know about Xrefs or Images, after the path
information. Hello, do you hear, Autodesk people ?

But while for the Xrefs we have the tables and some DXF codes to compare,
like (= (logand 32 (cdr (assoc 70 BLOCK_TABLE_INFO))) 0), cross checked with
the existence of the image file at the location indicated in the path
information (DXF 1), for the images I really don't know how to do it. Tim
Willey pointed out the Help documentation: Code DXF 280; Image-is-loaded
flag: 0 = "Unloaded"; 1 = "Loaded". But from what I've found, it doesn't
work. There is a screen shot attached on this message of a drawing in which
I have two Images, one "Loaded" (from a different location than the original
path), and a second one, which is "Not found", and in both cases, the DXF
code 280 is set to 1, as you can see it in the lower right corner detail of
my screen shot. So I assume that if AutoCAD is able to see that the image is
loaded, there should be some way for the programmers to get through this.

Can anybody provide some help ? Maybe the moderator/facilitator of this
forum ? Some code chunks would be of a great help ! Thanks in advance,

Constantin 🙂
0 Likes
191 Views
0 Replies
Replies (0)