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)
|
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)
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
Outside of looking at each individual Object in Model and Paperspace, is there a way to get this list for pre - 2004 Drawings?
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?
Hi Richard,
I don't know anything about OBJECTDBX. Can you suggest a reference?