.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Serialize AutoCAD objects?

1 REPLY 1
Reply
Message 1 of 2
mlovitt
621 Views, 1 Reply

Serialize AutoCAD objects?

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
1 REPLY 1
Message 2 of 2
ChrisArps
in reply to: 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).

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost