Can AutoCAD entities be serialized?
Posted
by
billmuell
on Stack Overflow
See other posts from Stack Overflow
or by billmuell
Published on 2012-10-05T11:37:26Z
Indexed on
2012/10/18
5:03 UTC
Read the original article
Hit count: 175
Using ObjectARX (C++) for AutoCAD 2010, can AutoCAD entities be serialized?
We need to save the serialized entity in a field in a database (Oracle, PostgreSQL, etc., not AcDbDatabase). It'OK if you show me how to save them in disk, something like this:
AcDbEntity * entity;
...
std::ofstream ofs("c:\\filename.fil", std::ios::binary);
ofs.write((char *)(entity), sizeof(entity));
ofs.close();
Thanks
© Stack Overflow or respective owner