for setting the color temperature of the lamps, you ask the user to write the complete definition of the lamp
eg 32000k, six digits, facilitating the error by forcing the user to provide as high a number of digits,
might be more user friendly allow the user to provide only a few digits,perhaps something like
(initget 7 "2800k,28 3000k,30 32000k,32 34000k,34 4000k,40 5000k,50") (setq ctemp (getkword "\n Choose Colour Temperature [(28)2800k/(30)3000k/(32)32000k/(34)34000k/(40)400
this way allows the user, if choose the lamp of 32000k, just enter 32, making it easier to choose the lamp...
hope that helps
Thank you Henrique, thats a good idea, at the moment though the program allows the user to click on an on screen menu so all he has to do is fill in the lamp type using the keyboard and then click on the required color temperature, no typing required for the color temp selection. But sometimes people have set their computer to disable the on screen menu or they keep their mouse off the graphic screen area and don't see the menu so they would then have to type it in so I will make a short cut type in option like you suggest as well.
Sorry rob, my battman comment was in response to your original question: Can you change the color of a block attribute with lisp...
I see now there was more to it.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register