Hello. I am also a new user of SolidWorks and had to animate a hinge. I used the first suggested approach and it work pretty well. Take care as to how you mate the hinge. In addition, you have to mate the hinge in its perpendicular configuration and then insert that into your assemble.
I am designing a box out of 16 gage sheetmetal with several right-angled bends and flanges. I am needing information on the K-factor and bend allowance formulas.