As part of my DC power supply project, I wanted to add a couple of USB jacks that could be used for charging different devices on the bench. They are wired to a current limited 5V supply and have resistors on the data lines to allow devices to recognize the jacks as >500ma charging stations. To mount the USB jacks on the power supply faceplate, I created this 3D printed panel insert to hold the USB jacks. The design is parametric, so you can easily change the design to suit your connectors.
Hatchbox or others PLA
A good example of scad source code. To see how the design evolved,
comment out line 24 and 25.
//rotate([180,0,0]) // print upside down
It is then easy to see how the various components of cubes and cylinders are combined to create the desired product. I try to structure my programs this way.... group all the parts to build body and then subtract out parts to make any required holes. It is much easier to visualize the position of the parts to be removed before the difference operator (line 25) is applied.The final operation is to rotate the part (line 24) so it prints without supports. This can also be done in your slicer. The screen shot included shows the effect of commenting out lines 24 and 25. Have fun and build stuff!