code:
dim staPoint as Variant
dim line1 as acadLine
dim endPoint(2) as double
set staPoint=thisDrawing.utility.getPoint(,"input startPoint")
endPoint(0)=staPoint(0)+10: endPoint(1)=staPoint(1): endPoint(2)=0
set line1=thisDrawing.modelSpace.addline(staPoint,endPoint)