Copy-paste CadDocument loses data #479
Replies: 2 comments 5 replies
-
The document seems to be quite old, I would recomend to update the version by: CadDocument.Header.Version = ACadVersion.AC1032; About the losing of size/data, at the current state may be caused because some of the infrastructure like XRecords and dictionary entries like Materials or VisualStyles are not implemented and are not written in the final file, but if you are not using them it should not be a problem. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
What I noticed so far: But when you transfer the entities to a new CadDocument (as below) it can be opened. The funny thing is that it opens up in paper space by default, but it is possible to activate the model space. This is actually also the case with DWG TrueView.
In any case, this method allows me to edit the dwg the way I need to do. It would be handy if it opens in model space straight away. |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all: cheers for this library and your great work.
I noticed that some data gets lost if I 'copy-paste' a CadDocument using ACadSharp. E.g. a test file of 22kb ends up at 6kb when I perform a simple read-write operation:
It becomes an issue when I try to open the output dwg file in some programs. Autodesk Inventor shows a blank page for any dwg file written by ACadSharp and also in DWG Trueview some entities are not visible (even though they are in the file when examining again with ACadSharp).
So my question is what data is lost here, or what needs to be done to enable compatibility with different software?
test.zip
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions