Revit: How to Build a Component with an Angle Control

How to create a line based component that has an angle control.
Source