Replies: 1 comment 4 replies
-
Hi @Lukeor, I ran this code on my end: var trees = doc.Entities.Where(e => e is Insert insert
&& insert.Block.Name == "TREE_1"
&& e.Layer.Name.Equals("VEGETATION", System.StringComparison.OrdinalIgnoreCase)); It got multiple entries with the correct layer and block: Can you provide an example of the code on your end? Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello again @DomCR and thanks for your continued support in this library!
I have a query regarding some data that does not seem to be ready in by ACadSharp.
Topographical Survey.zip
In the file called Topographical Survey - Original, if I view the file in a CAD viewer such as DWG TrueView then I am able to see trees in the drawing:
According to DWG TrueView, these trees belong to a layer called 'vegetation'.
However when reading in this CAD file with ACadSharp I am unable to obtain these trees. It seems that the vegetation layer contains numerous INSERT entities but that's it.
If I use AutoCAD to 'explode' the CAD drawing then I am able to read in these trees using ACadSharp. These trees now appear as POLYLINES in a layer called '0'.
Please see the file called Topographical Survey - Exploded to see the exploded version of the same CAD file. ACadSharp now reads in the trees within this file.
Is there any way to read in and access these trees (polylines) without having to explode the CAD file beforehand? Some users do not have access to AutoCAD and thus are unable to explode these files if need be.
Many thanks for your continued work and support!
Luke
Beta Was this translation helpful? Give feedback.
All reactions