Author Topic: Lee Mac modified Elevation Marker issue..  (Read 1809 times)

0 Members and 1 Guest are viewing this topic.

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Lee Mac modified Elevation Marker issue..
« 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

ChrisCarlson

  • Guest
Re: Lee Mac modified Elevation Marker issue..
« Reply #1 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

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Lee Mac modified Elevation Marker issue..
« Reply #2 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?

kirby

  • Newt
  • Posts: 132
Re: Lee Mac modified Elevation Marker issue..
« Reply #3 on: March 01, 2017, 09:09:14 AM »
(setq NumDecimals 2)

Change line Line 48
(setq str (rtos (cadr pt1) 2 NumDecimals)

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Lee Mac modified Elevation Marker issue..
« Reply #4 on: March 01, 2017, 09:15:57 AM »
thank you kirby..
it's solve the problem

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
« Last Edit: March 01, 2017, 10:11:25 AM by Mark »
TheSwamp.org  (serving the CAD community since 2003)

danglar

  • Newt
  • Posts: 161
  • Read My Li(s)(p)
Re: Lee Mac modified Elevation Marker issue..
« Reply #6 on: March 01, 2017, 10:11:37 AM »
...already done :smitten:
all respect and donates to Master Lee Mak only!

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Lee Mac modified Elevation Marker issue..
« Reply #7 on: March 01, 2017, 10:12:44 AM »
...already done :smitten:
all respect and donates to Master Lee Mak only!
[Thumbs-up]
TheSwamp.org  (serving the CAD community since 2003)

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: Lee Mac modified Elevation Marker issue..
« Reply #8 on: March 01, 2017, 01:31:29 PM »
Thank you Mark  :-)