cart: empty [ Login ]

Model errors

1 
Spring Air
6/21/2023 6:29 PM
This seems to have something to do with cloning entities from a file, putting them into a DxfBlock, and then cloning them into another file.
Wout
6/23/2023 11:53 AM
Hi, I normally don't debug customer programs or I ask to order a support ticket, but there's a missing writer.Write() call in method Program.Export().
C# Code:
private static byte[] Export(DxfModel model) { using (var memoryStream = new MemoryStream()) { var writer = new DwgWriter(memoryStream, model); writer.Write(); // <-- this call was missing. return memoryStream.ToArray(); } }
Other than that I don't see any issues. - Wout
1