• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

join two variables in lisp

  • Thread starter Thread starter mobile
  • Start date Start date

mobile

Guest
Hello, everyone! I wrote a short time ago, but I still wondered...http://www.cad3d.it/forum1/showthread.php?42625-lisp-per-misurareif I have a lsp of this type:

(setq measure (getdist "\nindicates the measure in meters: ")
(setq measurex (fix (* measure 100)));multiply the measure by 100, and thus transform it into centimeters
(setq measurementins (strcat size 2 2) " in centimeters: (a)); add to the measure inserted the suffix in cm
(command "_text" breaks "0.15" rest measurements)

But I would like it to, after the word "in centimeters:" add the text created by the measurable variableex
therefore should come out such a thing --> written incorrectly: [MISURA+in centimetri: MISURAEX] e.g. 12m in cm:1200
still a good evening to all!
Sorry to bother you...
thanks in advance
mobile mobile
 
tight returns a string obtained from concatenation of more strings, so just add them:

(setq measurementins (strcat size 2 2) "m in centimeters: (rtos measurementex 2 0))
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top