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

write a string with the symbol "

  • Thread starter Thread starter Matteo Cappelli dis.CAD
  • Start date Start date

Matteo Cappelli dis.CAD

Guest
Good morning
I would like to automatically write a string within a value attributed in a block.
I know the procedure, but I don't remember how to accept the symbol ".
example (setq new_text (strcat "a" "+" "b"))
return to +b
but, if I want to return the apices "a"+""b" as I must do?
I don't remember
if example I do (princ "\*") returns "*"
but if I do (princ "\"") returns "\"
Did I go to tilt?
Thank you from now on for your help
 
preced the symbol " from \
(princ "\")

otherwise
(chrcat "a" (chr 34) " b" (chr(34))
 

Forum statistics

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

Members online

No members online now.
Back
Top