Saving DWG file produces error #256
-
I wrote a very small piece of test code to load a DWG file and then without editting it, save it to a specified location. I wanted to make sure that no edits I was making could be causing the issue. I am making a windows forms application using .NET 8.0 and nuget package ACadSharp version 2.0.2-beta The code I used:
The LogIt function is basically just writing whatever string I pass to a rich text box in the application; In this case it is passing the error message I am catching when I try to save the file. The error I receive is:
Is there anything I can do to solve this myself? All of the DWG files I am testing produce this same error. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I've found an error reading the file where is reading an invalid object, I'll open an issue to fix it and make a release. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! The library is super quick at loading the CAD files, really glad I found this - Great work! |
Beta Was this translation helpful? Give feedback.
-
The nuget package released today with the updates applied fixed the saving issue! Thank you very much! |
Beta Was this translation helpful? Give feedback.
Hi @Spencer-reborn-Elliott,
I'll check the objects for the writer, I see that some of them should be ignored due a lack of implementation, I'll make the changes.
Thanks to report this issue.