Jump to content

Plotting Routine - Allow word with spaces for text entry for paper size??


ILoveMadoka

Recommended Posts

I've got a drawing with 30+ tabs all set to some non existent printer.

Someone here once helped me piece the following code together but

It bombing out when it gets to this piece of text, which is the paper size

 

Tabloid (11 x 17")

 

Yes that is exactly how it is written in the setup.

I think it doesn't like the spaces and probably the double quote mark.

 

Here is the code:

 

(defun c:X1 ()
(Princ "\nXRX90PS Setup 11 x 17 - Landscape: ")

(foreach tab (layoutlist) 

(setvar 'CTAB tab)
 (Command "-plot" "y" "" "\\\\sc1fs1\\XRX90PS"  "Tabloid (11 x 17")" "i" "L" "n" "e" "f" "center" "y" "monochrome.ctb" "y" "n" "n" "n" "n" "y" "n")
 (COMMAND "Zoom" "e") )
 (command "qsave")
(princ))

Please help!

 

Thx!

Link to comment
Share on other sites

To add a quotation mark (") in an AutoLISP string you should write it like:

 

"Tabloid (11 x 17[color=red]\[/color]")"

 

Regards,

Mircea

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...