text calculator

text calculator

Anonymous
Not applicable
3,178 Views
5 Replies
Message 1 of 6

text calculator

Anonymous
Not applicable

Hey Guys! I found an awesome lisp file for my work and i started using it.It adds numerical text and place the result.But my cad project consists many numbers and I can't separate the selected number from the unselected one.Can any one update it to change the color after the text is selected. please It's urgent!!!

0 Likes
Accepted solutions (1)
3,179 Views
5 Replies
Replies (5)
Message 2 of 6

devitg
Advisor
Advisor

@Anonymous , please upload your sample.dwg

0 Likes
Message 3 of 6

Anonymous
Not applicable

You can try it on any sample with numeric values, but it will not show you any indicator when you select a number

0 Likes
Message 4 of 6

devitg
Advisor
Advisor

@Anonymous , you shall ask the author

 

Author: Lee Mac, Copyright © 2011 - www.lee-mac.com 
0 Likes
Message 5 of 6

kajanthangavel
Advocate
Advocate
Accepted solution

 

 

I change some code, i hope it help you.

 

                (progn (command "_.ChProp" entity "" "_C" "t" "255,0,0" "")
				(not
                  (or
                    (and (= 1 (length num)) (setq num (car num)))
                    (and (setq num (car (LM:ListBox "Select Number to Use" (mapcar 'vl-princ-to-string num) nil))) (setq num (read num)))
					
                  )
                ))

colour code is "225,0,0" for Red

if you want change colour from true colours code

and

sorry to Lee Mac, because, I edit his lisp without permission .

Message 6 of 6

Anonymous
Not applicable
It works! Thanks kajanthangavel, appreciate it.
0 Likes