haplokuon / netDxf

.net dxf Reader-Writer
MIT License
966 stars 392 forks source link

how to set current layer #424

Open langxueya opened 1 year ago

langxueya commented 1 year ago

if current layer is layer1.

then I cannot remove layer1;

haplokuon commented 1 year ago

The current layer is set through the "CLayer" property of the "DrawingVariables", this value is only informative. You will not be able to delete a layer unless all its references reaches zero.