Hi Bose,
Thanks for the update.
We suggest you to set the Layer’s ‘Enabled’ property to ‘true’ and add that layer to the Diagram.Model’s ActiveLayer’s collection. If a node is added to the Diagram.Model, then it will automatically added to that Activelayer.
Here is the Code snippet:
[C#]
Layer layer1 = new Layer();
layer1.Visible = true;
layer1.Enabled = true;
this.diagram1.Model.ActiveLayers.Add(layer1);
For more information, please see the below online documentation UG link:
http://help.syncfusion.com/ug_93/User%20Interface/Windows%20Forms/Diagram/Documents/444layers.htmFor your convenience, we have modified the sample to achieve your reuirement.
Please try the below sample and let us know if you have any queries.
forum custom polygontool2130668387.zipRegards,
Amsath Ali. M