Something like this ...
Pivot1 = createpivot() positionentity Pivot1, -10,10,10 Pivot2 = createpivot() positionentity Pivot2, 10,-10,10 3dLine( Pivot1 , Pivot2 ) ;========================== Function 3dLine( P1, P2 , Thickness# = 1.0 ) Line = createcylinder() rotatemesh Line, 90,0,0 fitmesh Line, -1,-1,0,2,2,1 entityparent Line, P1 positionentity Line, 0,0,0 pointentity P1, P2 scaleentity Line, Thickness, Thickness , entitydistance( P1, P2 ) End Function