Ok. So once you have rasterIm.ImageDefId do this (I haven't compiled this so
please excuse any typos):
Dim obj As DBobject = tm.GetObject(rasterIm.ImageDefId, OpenMode.ForRead,
True)
If obj.GetRXClass.IsDerivedFrom(RXClass.GetClass(GetType(RasterImageDef)))
Then
'create a RasterImageDef wrapper
rasterImageDef =
DisposableWrapper.Create(GetType(RasterImageDef), obj.UnmanagedObject,
False)
End If
wrote in message news:4854580@discussion.autodesk.com...
I have got RasterImage through the same trick from Image ( Image from
CurrentSpace), but I can't get RasterImageDef from : rasterIm.ImageDefId
rastImDef = tm.GetObject(rasterIm.ImageDefId,
OpenMode.ForRead, True)