BitmapTable.Find doesn't write missing bitmap?


#1

I’m trying to use BitmapTable via RhinoCommon. Using Rhino 5 Windows SR14. If I add a bitmap to the file, and subsequently delete it from disk, calling document.Bitmaps.Find(filename, true, out path) returns an entry, but does not save the bitmap to disk as the API suggests it should, and path is empty.

However, calling entry.Save on the returned entry does work. What gives? Should I just not rely on Find to save bitmaps or am I doing something wrong?


(Dale Fugier) #2

Hi @Max_Eskin,

The attached seems to work. Perhaps we need a simple example that doesn’t.

TestMax.cs (1.6 KB)

– Dale


#3

I just tried adding your example to a test plugin and it shows the same issue.


(Dale Fugier) #4

Hi @Max_Eskin,

I tested the code I posted in Rhino 5 SR14. If you have a way of repeating the failure, I’d like to see it.

Also, have you tried this in Rhino 6? If there is a problem in Rhino 5, there isn’t any hope of fixing it…

– Dale