brackets (braces) in string

Anonymous

brackets (braces) in string

Anonymous
Not applicable
not sure if this can be done or not but how can you place brackets inside a string without confusing Autolisp? I am trying to make a simple automatic tiff plotting routine but I can't have lisp enter the name of the plotter because it is called "TIFF Version 6 (CCITT G4 2D Compression).pc3" and the brackets screw the routine up. Is there a way to fix this (without changing the plotter name). Thanks for any help.
0 Likes
Reply
392 Views
4 Replies
Replies (4)

Anonymous
Not applicable
Does this work for you?
"TIFF Version 6 \(CCITT G4 2D Compression\).pc3"

Tim
0 Likes

Anonymous
Not applicable
Hi yavid

There is no problem in LISP with parenthesis inside a string:
_$ (setq stg "(First) and (Next) and [Another]")
"(First) and (Next) and (Another)"
_$

Cheers
--
Jürg Menzi
MENZI ENGINEERING GmbH, Switzerland
http://www.menziengineering.ch
0 Likes

Anonymous
Not applicable
I didn't think it mattered either but it does in this case. All of the other plotters I have tried work except for that one and it is the only one that contains brackets. Thanks to T.Willey for the "TIFF Version 6 \(CCITT G4 2D Compression\).pc3" solution, it seems to be working.
0 Likes

Anonymous
Not applicable
try the variable "TEXTEVAL"

wrote in message news:4927399@discussion.autodesk.com...
not sure if this can be done or not but how can you place brackets inside a
string without confusing Autolisp? I am trying to make a simple automatic
tiff plotting routine but I can't have lisp enter the name of the plotter
because it is called "TIFF Version 6 (CCITT G4 2D Compression).pc3" and the
brackets screw the routine up. Is there a way to fix this (without changing
the plotter name). Thanks for any help.
0 Likes