TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: andrew.. on February 14, 2019, 12:36:37 PM

Title: its been 5 years since i last wrote code, little rusty some easy help please
Post by: andrew.. on February 14, 2019, 12:36:37 PM
trying to write a simple print lisp
i know i have the setq code wrong. i just dont remember the syntax for having the forward slashes in the variable is supposed to look like.

Code: [Select]

(setq loc "\\NEWOTHO\MFG")


(command "plot" "Y" "MODEL" loc "Letter" "Inches" "PORTRAIT"
 "N" "L" "Fit" "center" "Y" "monochrome.ctb" "Y" "As Displayed" "N" "N" "Y")

thanks
Title: Re: its been 5 years since i last wrote code, little rusty some easy help please
Post by: Lee Mac on February 14, 2019, 12:59:04 PM
Assuming a UNC path -

Code: [Select]
(setq loc "\\\\NEWOTHO\\MFG")
Title: Re: its been 5 years since i last wrote code, little rusty some easy help please
Post by: andrew.. on February 14, 2019, 02:15:39 PM
thank you, sir