This video shows how to add a Rotatation parameter in a dynamic block and how to set it to accept only a limited range of values. Source: Autodesk