Mac m1 3dm file preview error

RhinoCommon 7.27

                var file3dm = Rhino.FileIO.File3dm.Read(fileInfo.FullName);
                var bmp = file3dm.GetPreviewImage();
                if (bmp != null)
                    bmp.Save(fileInfo.FullName.Replace(".3dm", ".png"), System.Drawing.Imaging.ImageFormat.Png);

1.3dm (84.4 KB)

File3dm.ReadPreviewImage()
Unable to obtain preview image on MAC

1 Like

Hi @Lian,

I don’t believe this method is implemented on Rhino3dm on macOS.

– Dale

System.Drawing.Bitmap tf = File3dm.ReadPreviewImage(adres);
Rhino8 MacOS I’m not getting any image either.!

System.Drawing.Bitmap tf = Rhino.RhinoDoc.ExtractPreviewImage(adres);
also doesn’t work for MacOS. Rhino8 sr6

@taraskydon - yes, these are known issues.

– Dale

It works for Windows. Like Rhino.RhinoDoc.ExtractPreviewImage and File3dm.ReadPreviewImage.
it’s the only thing that works. for macOS. System.Drawing.Bitmap tf = Rhino.FileIO.File3dm.Read(adres).GetPreviewImage();
but this process is too expensive to process if I want to download a lot of files. :pensive: