Results 1 to 6 of 6

Thread: Getting a List of Attached Images

  1. #1
    Login to Give a bone
    0

    Default Getting a List of Attached Images

    Hi all,

    How does one programatically get a list of image Filenames attached to a DWG file? (The list which appears with the Image Manager)

  2. #2
    Administrator richard.binning's Avatar
    Join Date
    2015-12
    Location
    In the foothills of the appalachians
    Posts
    2,261
    Login to Give a bone
    0

    Default Re: Getting a List of Attached Images

    Try this:

    Code:
    Public Sub LocalDeps_Images()
    	Dim myFileDeps As AcadFileDependencies
    	Dim myFileDep As AcadFileDependency
    	Set myFileDeps = ThisDrawing.FileDependencies
    	For Each myFileDep In myFileDeps
    		If myFileDep.Feature Like "Acad:Image" Then
    			ThisDrawing.Utility.Prompt "Image: " & myFileDep.FileName & " Found Path is :" & myFileDep.FullFileName & vbCrLf
    		End If
    	Next myFileDep
    End Sub

  3. #3
    Login to Give a bone
    0

    Default Re: Getting a List of Attached Images

    Outside of looking at each individual Object in Model and Paperspace, is there a way to get this list for pre - 2004 Drawings?

  4. #4
    Administrator richard.binning's Avatar
    Join Date
    2015-12
    Location
    In the foothills of the appalachians
    Posts
    2,261
    Login to Give a bone
    0

    Default Re: Getting a List of Attached Images

    It would be much faster to search using ObjectDBX with VBA outside of drawing. If you need to search this file while it is open, then you are at the mercy of searching each entity. Perhaps a quick save would solve your problem?

  5. #5
    Login to Give a bone
    0

    Default Re: Getting a List of Attached Images

    Hi Richard,

    I don't know anything about OBJECTDBX. Can you suggest a reference?

  6. #6
    Administrator richard.binning's Avatar
    Join Date
    2015-12
    Location
    In the foothills of the appalachians
    Posts
    2,261
    Login to Give a bone
    0

    Talking Re: Getting a List of Attached Images

    Check out for a pointer...

Similar Threads

  1. XREF Manager to list if xrefs are attached to another Xref
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 5
    Last Post: 2014-10-28, 04:13 AM
  2. Replies: 4
    Last Post: 2013-11-26, 02:43 PM
  3. Attached Images Plot Dark Gray
    By CADdancer in forum AutoCAD Plotting
    Replies: 3
    Last Post: 2010-06-25, 02:26 PM
  4. NWF Attached Files Export List
    By alan.couture in forum NavisWorks - General
    Replies: 3
    Last Post: 2008-12-04, 12:47 AM
  5. LIST Command doesn't list Attached by Layer Materials
    By rbdome in forum AutoCAD 3D (2007 and above)
    Replies: 2
    Last Post: 2007-01-18, 02:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •