你在找什么吗?
- Option Explicit
- Sub GetImages()
- Dim objDict As AcadDictionary
- Set objDict = ThisDrawing.Dictionaries("ACAD_IMAGE_DICT")
- If objDict.Count 0 Then
- Dim oEntity As AcadEntity
- Dim objImage As AcadRasterImage
- Dim tmpArr(1) As Variant
- Dim imageColl As New Collection
- For Each oEntity In oSset
- Set objImage = oEntity
- tmpArr(0) = objImage.Name
- Debug.Print tmpArr(0)
- tmpArr(1) = objImage.ImageFile
- Debug.Print tmpArr(1)
- imageColl.Add tmpArr
- Erase tmpArr
- Next
- Else
- MsgBox "No images inserted."
- End If
- End If
- oSset.Delete
- Set oSset = Nothing
- End Sub
脂肪
~'J'~ |