so, after loosing 8h with exploring all of the amazing depths of undocumented world of autocad, here are some of the starting points for someone who stumbles to this problem:
sulution to
open OLE objects was found on some (russian?) forum,
http://adn-cis.org/forum/index.php?topic=721.0and by google translating it, the soution they have is to use
Database destDb
= new Database
( false ,
false) ;
this has to do with:
http://adndevblog.typepad.com/autocad/2012/07/using-readdwgfile-with-net-attachxref-or-objectarx-acdbattachxref.htmlhowever, you may find that now you have
eNoInputFiler error
to solve this, you have to use
document lock. But, since you do not have a document (you are, in fact, trying to open one!), you have to
force the user to have at least one document
once he has one, any, you are able to do this:
http://adndevblog.typepad.com/autocad/2012/07/enoinputfiler-exception-when-using-readdwgfile.htmland then, open excel by combining
http://spiderinnet1.typepad.com/blog/2013/03/autocad-net-read-dwg-into-memory-using-databasereaddwgfile.htmland
http://forums.autodesk.com/t5/net/read-embedded-excel-sheet/td-p/3773610/page/2This is the place where I will stop, and I have not tested this thoroughly. If anyone has something to contribute, please do.
Also, if someone writes this routine, it will be good for common routine thread.