Download
This is an example project that creates graphic elements from selected polygons and enables undo/redo of the operation.