Set objNewImg = PaperSpace.AddRaster(strNewName, objImg.Origin, objImg.ScaleFactor, objImg.Rotation)
DetachImage (strImgName)
Kill strImgPath & strImgName & strImgExt
Rename
Next objImg
End If
End Sub
Function DetachImage(ByVal strName As String)
'Function jacked then Bobbed from Luis Alberto who got it somewhere else http://groups.google.com/group/autodesk.autocad.customization.vba/browse_thread/thread/2a3de0506ce1ed32/4e8b16d28d05e7a2%234e8b16d28d05e7a2?sa=X&oi=groupsr&start=0&num=3
On Error GoTo NoPicYo
Dim objImgDic As AcadDictionary
Dim objImg As AcadObject
Set objImgDic = ThisDrawing.Dictionaries("ACAD_IMAGE_DICT")