How to Draw a Line with Slope

I try to draw a sloped line with AccuDraw. I tried this tutorial but it didn't work as expected:

For example I input 1000, 1000, 1300 coordinates for the first point, second point will be 40 meters away with %5 slope. In distance, direction mode, I input dist: 40 m, direction: 40 degree, Z: pressed * and input 0.5. Elevation didn't change. I expect that it calculates 40- (40*0.5) How can it be calculated from the first elevation?

Edit: corrected (Z * slope) to (distance * slope)

Parents Reply Children
  • I input 1000, 1000, 1300 coordinates for the first point

    are you trying to do this in 3d?

    It's pretty easy in 2d but you have to use the trigonometric options for accudraw to calculate the angle and use a length of 40 see help for that to use trig calculator to draw the 40 long with the tangent  of 5 in 100 for the angle or get your window scientific calculator out and calculate the angle for a 5 rise  in 100 run the angle then in accudraw 40 long and the calculated angle

    or a much simpler way without calculator or trigonometry draw a line 100 long in x and 5 in the y at the end of 100 long this establishes the angle  without trig ( or draw a triangle with placeline  x=100, then up or y 5 then back to start point...

    now place a circle radius 40 from start point and extend the  sloping  or hypotenuse of your triangle to intersect the edge of your circle  

    Sorry I cant  figure it out in 3d .. 3d trigonometry is really hard..

    There are several FREE macros available from many DoTs to draw sloped lines, annotate sloped lines and even allow for  vertical exaggeration and input as percentage or 1 in X for  V :H etc... but depends on what version of Mstn your  using and you have not told us your version..


    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 ( dabbler CE  update 16 ( 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me 

  • Thank you, When I try, it works for positive direction like 40(hit)*(type) 0.05. When I do 40(hit)*(type)-0.05 it doesn't. When I type -0.05, multiplication symbol is subtraction symbol so it subtracts the distance from 0.05. It may be about AccuDraw settings, I will check it and I will try again.

    Positive slope is ok:

    Negative slope changes multiplication to subtraction:

  • Thanks Lorys, it is just simple math like distance * slope. Now I learnt it with AccuDraw. I don't know about Dots standards, I downloaded some. I will take a look if there are useful scripts.

  • Thank you Mary, About negative slope, when I type (-0.05) it worked!