haplokuon / netDxf

.net dxf Reader-Writer
MIT License
1.01k stars 411 forks source link

how to set current layer #424

Open langxueya opened 2 years ago

langxueya commented 2 years ago

if current layer is layer1.

then I cannot remove layer1;

haplokuon commented 2 years 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.