TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: danglar on March 01, 2017, 08:52:16 AM

Title: Lee Mac modified Elevation Marker issue..
Post by: danglar on March 01, 2017, 08:52:16 AM
Hi folks.
 I wonder whether anyone can help with Lee Mac code...


 I slightly modified Elevation Marker (see attached one). Lisp working properly, but elevation text have zero suppression (instead 5.30 function return 5.3)
 As I know to change this value I need something like this:


 (rtos someValue 2 2)


 .. but I don't know how to to do it


 Can somebody know how to solve this problem?


 I appreciate your quick response and the time you spent in helping me out. Thanks
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: ChrisCarlson on March 01, 2017, 08:54:26 AM
Read the documentation on
Code - Auto/Visual Lisp: [Select]

The answer lies in one of the 2's
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: danglar on March 01, 2017, 08:59:29 AM
I've read a documentation about this function, but in Lee Mak lisp not all clear for me.. can you help me?
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: kirby on March 01, 2017, 09:09:14 AM
(setq NumDecimals 2)

Change line Line 48
(setq str (rtos (cadr pt1) 2 NumDecimals)
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: danglar on March 01, 2017, 09:15:57 AM
thank you kirby..
it's solve the problem
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: Mark on March 01, 2017, 10:07:56 AM
thank you kirby..
it's solve the problem
http://lee-mac.com/about.html (look for the Donate button)

Also, it would be good for everyone if you mentioned where you found the answer in your post.
https://lispbox.wordpress.com/2017/02/23/lee-mac-modified-elevation-marker-added-predefined-text-style-create-ucs-for-0-00-elevation-option-to-change-level-marker-scale-according-to-elevation-marker-text-height/
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: danglar on March 01, 2017, 10:11:37 AM
...already done :smitten:
all respect and donates to Master Lee Mak only!
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: Mark on March 01, 2017, 10:12:44 AM
...already done :smitten:
all respect and donates to Master Lee Mak only!
[Thumbs-up]
Title: Re: Lee Mac modified Elevation Marker issue..
Post by: Lee Mac on March 01, 2017, 01:31:29 PM
Thank you Mark  :-)