Hi,
Take a look at the following book in the help:Framework > Presentation Layer > Smart Shapes
It contains all the information you need to construct a smart shape of your own.
Best Regards,Nevron Support Team