Bearing & Distance Lisp Routine Issue

Bearing & Distance Lisp Routine Issue

suzannebeatch
Participant Participant
366 Views
2 Replies
Message 1 of 3

Bearing & Distance Lisp Routine Issue

suzannebeatch
Participant
Participant

@dlanorh

 

I had searched the forums and found your bearing and distance lisp routine. Thank you for posting it previously in 2020 to the forum. 

 

As great as it is I am experiencing one slight problem with it.  For all of my bearings, it rounds the seconds to the nearest whole number. I don't want my bearings to be rounded. 

 

Here are a few examples of what I mean.

1.   89°56'49" is rounded to 89°56'50".

2. 179°53'32" is rounded to 179°53'30".

 

I tried looking at the script itself but couldn't see where that part of the script and I didn't want to mess around with it.  If anyone can help me out with where in the script it says to round the seconds and how to change it that'd be great. I've attached a copy of @dlanorh's lisp routine.

 

Thanks.

0 Likes
Accepted solutions (1)
367 Views
2 Replies
Replies (2)
Message 2 of 3

Kent1Cooper
Consultant
Consultant
Accepted solution

I suspect [without detailed analysis or trial] you should change this line:

        a_rnd 10.0 ;; Rounding for angles (Real Seconds of Arc)

 

to this:

 

        a_rnd 1.0 ;; Rounding for angles (Real Seconds of Arc)

 

Kent Cooper, AIA
0 Likes
Message 3 of 3

suzannebeatch
Participant
Participant

Thank you so much Kent. I knew it was in there but just couldn't see it. That worked. 🙂

0 Likes