How can i soften/smooth edges by coding using sketchup_c_api?

I created many triangles in sketchup and seleted them, then pressed the right mouse button and chose “soften edges” to sofen them.How can i do this by coding? Which classes and functions can i use by sketchup_c_api?