Create Revit Line using Revit API and Python

I just mean mathematically convert the units. This post has a well thought-out solution to match project units.