Today I worked in Inventor to create widgets like this. To create this widget I first drew the front shape, like the first image. Then, I extruded the shape. After that I just drew a 45 degree angle across the front right edge, and cut it out of the shape.