doc = __revit__.ActiveUIDocument.Document
uidoc = __revit__.ActiveUIDocument
active_view = doc.ActiveView
pt_start = XYZ(20,0,0)
pt_end = XYZ(20,5,0)
curve = Line.CreateBound(pt_start, pt_end)
detail_line = doc.Create.NewDetailCurve(active_view, curve)