- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to use a script to plot but when the script gets to the layout name, I cannot get the script to accept the default with a carriage return (after the first _Yes command). Instead, it tries to use the next line for the name of the layout name. I have hit enter once, twice, once with "" but nothing seems to work.
(setq draw_address(getvar "dwgprefix"))
(setq draw_name(getvar "dwgname"))
(setq draw_len (strlen draw_name))
(setq draw_name (strcat (substr draw_name 1 (- draw_len 4))".pdf"))
(setq draw_name (strcat draw_address draw_name ))
;;
(if(="Model" (getvar "ctab"))
(command "_-plot"
"_Yes"
"DWG To PDF_bsize.pc3"
"ANSI full bleed B (17.00 x 11.00 Inches)"
"_Inches"
"_Landscape"
"_No"
"_Extents"
"1:1"
"_C"
"_Yes"
"my_standard_plt.ctb"
"_Yes"
"_No"
"_Yes"
"_No"
draw_name
"_No"
"_Yes")
(command "_-plot"
"_Yes"
"DWG To PDF_bsize.pc3"
"ANSI full bleed B (17.00 x 11.00 Inches))"
"_Inches"
"_Landscape"
"_No"
"_Extents"
"1:1"
"_C"
"_Yes"
"my_standard_plt.ctb"
"_Yes"
"_No"
"_Yes"
"_No"
draw_name
"_No"
"_Yes"))
))
Solved! Go to Solution.