0 Members and 1 Guest are viewing this topic.
The code in maicy's link may not work for files saved with BricsCAD V14 since that version uses .png drawing previews instead of .bmp previews.
Thanks MP, unfortunately Bricscad Classic will not run DOSLIB, I am looking for another option.
dos_extractpreviewExtracts the thumbnail image from the active document to a bitmap file.Syntax(dos_extractpreview filename)ParametersfilenameThe name of the bitmap file to create. The allowable file types are as follows: BMPWindows BitmapJPGJFIF CompliantGIFCompuserve Graphics InterchangeTIFTagged Image File FormatPNGPortable Network GraphicsReturnsA string identifying the created bitmap file if successful.nil on error.ExampleCommand: (dos_extractpreview "C:\\test.bmp")"C:\\test.bmp"
... Bricscad Classic will not run DOSLIB...
More interesting would be a command where you specify a drawing extract the previewand returns it in the proper format for DCL display.
I would like to use that function, however text is an issue. The function does not display text.