I am writing a litle routine to update our room tags w/ the area of the room.
I'm using entmod to update the assoc of the room tag attribute. But it seems that the a2 value needs to be in quotes...?
Does not work:
(setq new (subst (list (cons 1 a2)) val partlst))
If I change a2 variable to the actual area value (at the time) "2.61126" everything is peachy.
Works:
(setq new (subst (list (cons 1 "2.61126" a2)) val partlst))
...also if you find that my code isn't clean or theres an easier way of doing things, I'm open to suggestion as it's been a while since I've written a routine...
Thanks in advance.
I'm using entmod to update the assoc of the room tag attribute. But it seems that the a2 value needs to be in quotes...?
Does not work:
(setq new (subst (list (cons 1 a2)) val partlst))
If I change a2 variable to the actual area value (at the time) "2.61126" everything is peachy.
Works:
(setq new (subst (list (cons 1 "2.61126" a2)) val partlst))
...also if you find that my code isn't clean or theres an easier way of doing things, I'm open to suggestion as it's been a while since I've written a routine...
Thanks in advance.