Try using Pro/Mechanism module and create mechanism, which includes hinge spinning around axis. You can set limits (say 0 and 90 degrees) and then drag the hinge from one end to another. As of 2001 Flexible Advantage Package licence Pro/Mechanism module is included in basic licence.