Curves are often needed as inputs to Revit API methods. Curves can be created static methods on the associated classes:
Curve creation methods prevent creation of curves that are shorter than Revit's tolerance. This tolerance is exposed through the Application.ShortCurveTolerance property.