place chainage text at polyline vertex.

place chainage text at polyline vertex.

Sally_Ward8TWBK
Explorer Explorer
341 Views
3 Replies
Message 1 of 4

place chainage text at polyline vertex.

Sally_Ward8TWBK
Explorer
Explorer

hello all

 

I have downloaded a lisp that nearly does what I want. I am hoping to get some help on what to tweak to make it produce what I want. 

I dont want

    -the extra 0's in front of chainages with < 3 digits before the decimal point

    -the 01+'s in front of chainages with > 4 digits before the decimal point

Sally_Ward8TWBK_0-1732924494559.png

 

thanks in advance

 

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

paullimapa
Mentor
Mentor
Accepted solution

don't run this line in the code:

 

                   txt (rh:2chge dst 2)

 

instead run this line:

 

                  txt (rtos dst 2 2) ;; just return distance as string with decimal value and 2 digit precision

 

then the code won't run the function rh:2chge which adds the 0s in front of the #s or the 01+


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

Sally_Ward8TWBK
Explorer
Explorer

thanks so much. 🙂

0 Likes
Message 4 of 4

paullimapa
Mentor
Mentor

you are welcome...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes