Hi, NSmartShapes are shapes that are not related to Nevron Diagram. They are used in Nevron Gauge for some indicators and gauges, so you cannot use them in a Diagram drawing document.
If you want to create a rounded rectangle with differently rounded corners than that of the predefined one, your should create a GraphicsPath that defines your shape geometry, then create an NCustomPath from it and add it to an NCompositeShape. Take a look at the Document Object Model -> Shapes -> Custom Shapes example that comes preinstalled with Nevron Diagram for .NET for a sample implementation.
Best Regards,Nevron Support Team
Hi David,
The easiest way to create a rounded rectangle shape is to use the basic shapes factory:
// Create a basic shapes factory
NBasicShapesFactory factory = new NBasicShapesFactory(document);
factory.DefaultSize = new NSizeF(100, 60);
// Use the factory to create a rounded rectangle shape
NShape roundedRectangle = factory.CreateShape(BasicShapes.RoundedRectangle);
roundedRectangle.Location = new NPointF(100, 100);
document.ActiveLayer.AddChild(roundedRectangle);