Need clarification on what exactly goes into spaces in lisp routines. Are there tips out there on how to determine how to write a routine where part of the routine has to have a regular space on the line. How does one determine which route to take if part of his/ her routine will include regular spaces so that autocad won't read them as returns.
I'm trying to write a routine for importing pagesetups into a drawing. When I type everthing in the command line, it works fine but when I transpose those into a routine, it doesn't because my pagesetups have spaces on them. spaces = returns in the routine.
I can easily just rename the setups to not include space but i'd like to find out what the common practice is for spaces. Do we just avoid spaces on filenames, folder names or anything we can use w/ the file from pagesetups to layout names and layers in general?
Here's what i've tried so far from past suggestions on other routines i've tried out but i think these work w/ attribute fields and not for what i'm trying to use it for which are in the command line prompts. Then again i'm a newbie and i can just be messing this thing up completely. Any suggestions on how to do this line properly or a different way? Any input would help?
Code:
(write-line (strcat "-psetupin" "\r" "Q:/DRAFTING_STANDARDS/PAGE_SETUP/PS.DWG" "\r" "CA8306101 - B SIZE 1 TO 1" "\R") SCRFILE)
(write-line "-psetupin Q:/DRAFTING_STANDARDS/PAGE_SETUP/PS.DWG \"CA8306101 - B SIZE 1 TO 1\"" scrfile)
(write-line (strcat "-psetupin Q:/DRAFTING_STANDARDS/PAGE_SETUP/PS.DWG"
"\NCA8306101 - B SIZE 1 TO 1")
scrFile
)