Page 1 of 1

Delete Layer

Posted: 11 Jun 2018, 00:12
by Ljurka
Hello!
I need to draw in png file entities of one layer.
How could I delete or hide certain layer using Converter.Layers?
Or is it possible only in the way when I search entities in the layer one by one and delete from
Converter.Entities.Remove(ent);
??

Re: Delete Layer

Posted: 11 Jun 2018, 01:10
by support
Hello,

You can hide a layer with a certain name using the following code:

Code: Select all

cadImage.Converter.LayerByName("Layer1").Visible = false;
Mikhail

Re: Delete Layer

Posted: 12 Jun 2018, 17:12
by Ljurka
thank you. it helps