Delete Layer

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Ljurka
Posts: 4
Joined: 11 Jun 2018, 00:08

Delete Layer

Post by Ljurka » 11 Jun 2018, 00:12

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);
??

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: Delete Layer

Post by support » 11 Jun 2018, 01:10

Hello,

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

Code: Select all

cadImage.Converter.LayerByName("Layer1").Visible = false;
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Ljurka
Posts: 4
Joined: 11 Jun 2018, 00:08

Re: Delete Layer

Post by Ljurka » 12 Jun 2018, 17:12

thank you. it helps

Post Reply