Is there a way to serialize an AutoCAD entity? Specifically, I would like to serialize a hatch object, such that I can store it in a file, and later deserialize it and re-add it to the drawing.
If there's no way to do this, is there a straightforward way to extract enough data from the hatch object to recreate it later (the boundaries seem to be the tricky part)?
Message was edited by: mlovitt
Check out the dot net samples in the Objectarx2006 SDK. There is one called "Filersample" that lets you implement a custom filer for the object. It looks like that would be perfect for what you want to do.
This would be very easy to do in ARX, just create a new drawing database, clone the entity into it and save. (If you don't mind having your file be DWG format).