Extract image tiff filename incl path from dwg files

Discussion in 'AutoCAD' started by swood, Jan 20, 2005.

  1. swood

    swood Guest

    Anyone know a utility or the code to write a report of all dwg files stored in a Windows 2000 folder that contain attached tiff files? Report should list the .dwg filename and path and any attached tiffs filename and path.

    Want to avoid opening each file and running "image" command if possible.
     
    swood, Jan 20, 2005
    #1
  2. swood

    swood Guest

    oops, forgot - Acad 2000 files only
     
    swood, Jan 20, 2005
    #2
  3. For Each ent In ThisDrawing.ModelSpace
    If TypeOf ent Is AcadRasterImage Then
    Set rasterObj = ent
    'Set path to string then test...
    RasterPath = rasterObj.ImageFile
    End If
    Next ent

    Combine this idea with some batch processing code (afralisp.com).
    Should get you started...
    gl
    Paul
     
    Paul Richardson, Jan 20, 2005
    #3
  4. swood

    swood Guest

    Thx Paul - will give this a try shortly then update this posting with resulting solution
     
    swood, Jan 21, 2005
    #4
  5. How did you do? I wrote a quick app if you need it...
     
    Paul Richardson, Jan 21, 2005
    #5
  6. swood

    user0 Guest

    Excuse me for barging in but I couldn't resist. I would like to do a similar process but when I get to a drawing where the path and filename to the TIF are there but the TIF can't be found, I get a message box popping up. How can I stop the message box from showing. It can stop my batch process.

    Thanks,
    Rick
     
    user0, Jan 24, 2005
    #6
  7. swood

    Jeff Mishler Guest

    Use ObjectDBX in place of a batch script. ObjectDBX allows you to access a
    drawing's database without opening it in Autocad, since it isn't opened it
    will never know whether the tiff is found or not.

    For info on the basics of ObjectDBX:
    http://www.cadvault.com/forums/article.php?a=55 you may need to register at
    the site first, but registration is free.
     
    Jeff Mishler, Jan 25, 2005
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.