Message 1 of 3
Opening a drawing/database from memory, instead of a file
Not applicable
04-26-2016
05:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am working on a plugin that would enable AutoCAD to open my encrypted drawings. I would like to avoid having to decrypt the drawing to a dwg file. However, the APIs for opening a drawing in AutoCAD all seem to work only with filepaths. Is there any other way to load a drawing/database in AutoCAD, that does not involve having a dwg file on the hard drive?
What has caught my attention was the
AcDbDatabase::readDwgFile(AcDwgFileHandle * pDwgFile, ...)
function, but I was unable to find any information on the AcDwgFileHandle class. If it just was a wrapper for Win32 HANDLE or something, it would easily solve my problems. Does anyone know how to obtain the AcDwgFileHandle and whether it would be useful for my purposes?
Thanks for your help.
Have a nice day,
Adam