Layer order from AutoCAD

1
RvL
12/4/2018 6:53 AM

Hello,

the layer order in DxfModel.Layers (sorted by handle?) does not match the order in the layers pull-down menu in AutoCAD. Is there a possibility to get a list in that order?

Thanks
Richard

Wout
12/4/2018 10:28 AM

Hi,

DxfModel.Layers is a keyed collection for quick access by layer name, so it's not intended to be in any particular order. You will have to create a new List and sort it by Name for example.

- Wout

sighol
3/27/2019 1:22 PM

Is it possible to get the list in the same order as the drawing order?

Wout
3/27/2019 1:32 PM

Layers do not have a drawing order.

- Wout

1