Hi, in your case it is best to apply the protections when the shape is added to the doucment, i.e. in the NodeInserted event of the document's event sync service:
document.EventSinkService.NodeInserted += OnNodeInserted;
private void OnNodeInserted(NChildNodeEventArgs args)
{
NShape shape = args.Child as NShape;
if (shape == null)
return;
// Set protections
NAbilities protection = shape.Protection;
protection.Select = true;
shape.Protection = protection;
}
Best Regards,
Nevron Support Team