Serialize AutoCAD objects?

Serialize AutoCAD objects?

Anonymous
Not applicable
929 Views
1 Reply
Message 1 of 2

Serialize AutoCAD objects?

Anonymous
Not applicable
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
0 Likes
930 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
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).
0 Likes