-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DwgReader.Read not reading Polylines in Example file #471
Comments
Hi @jhvjnr, The file that you send me doesn't have any polyline, all the entities seem to be proxy entities which are not stored in the file unless specified by the reader configuration. Unfortunately |
Hi @DomCR thank you for having a look at this and the feedback. I think that at least some data must be stored in the file somehow as it is >6MB and I was sent the file as is, in isolation. Opening it in Autodesk TrueView shows this: It looks like layers C-TOPO and HS2-00002BJS5-HFS-C01_Breaklines have polylines. Maybe I have a misunderstanding? Should I be looking elsewhere than cadDocument.Entities? Hopefully it is something simple like this! Thanks, |
In addition to simple drawing entities, AutoCAD can contain many different types of much more complex entities known as Proxy Entities. Essentially they are a blob of data (like an image for example) that are to be read a certain way by the viewer and those methods have never been made public (as far as I know) for any the many proxy entities. If you find some documentation about how they are read (and written) that would be a path forward to be able to parse the data. Otherwise, reading this data would be an arduous task of trial and error by modifying the data in the CAD file and seeing how the output changes. This is also assuming the data in the proxy entity doesn't completely change every time, like in the case of certain encodings, compressions or encryptions. |
You can set the flag |
Describe the bug
When reading Example.dwg into a CadDocument, the CadDocument contains no entities, even though the file contained Polylines
To Reproduce
I run the following code:
doc = ACadSharp.IO.DwgReader.Read(memoryStream);
Providing Example.dwg as a MemoryStream
Example.zip
Expected behavior
Expected a successful read of the file like I see in other programs
Screenshots
The eventual output should look like this as seen in another cad program:
The text was updated successfully, but these errors were encountered: