Order of entities

Jul 9, 2014 at 7:15 PM
Hello everybody,

I am new with the library and I want to know if is possible obtain a list of entities orderly as it appears in the .dxf file.

Thanks for help me,

Diego
Coordinator
Jul 10, 2014 at 6:00 PM
Yes, you can get the list of entities ordered by layouts with:
List<DxfObject> entities = dxfDocument.Layouts.GetReferences(layoutName);
If what you need is the full list of entities in the ModelSpace you can just use:
List<DxfObject> entities = dxfDocument.Layouts.GetReferences("Model");
The ModelSpace is a reserved layout that is always present in the drawing and it is always called "Model".

Daniel
Marked as answer by diegoroman17 on 7/10/2014 at 11:40 AM
Jul 10, 2014 at 6:40 PM
Thanks you Daniel