Author Topic: Hello Im new and have a quick question.  (Read 3642 times)

0 Members and 1 Guest are viewing this topic.

hardeight

  • Guest
Hello Im new and have a quick question.
« on: March 13, 2009, 12:52:49 PM »
How do you write a plot script and insert the paper size with inches in the size?
What format allows it to work?
Say, for example, the paper size required is "Letter (8½x11")"
When I put this into my script, it gets to the "inches" symbol, the second ", and blows up. Is there a way to format this in the script to allow it to read it correctly?  Can you put character maps in a script? Say perhaps (strcat "Letter (8½x11" (chr 34) )") or can a script not read any lisp functions?
I am banging my head against the wall over here.... :ugly:

JohnK

  • Administrator
  • Seagull
  • Posts: 10659
Re: Hello Im new and have a quick question.
« Reply #1 on: March 13, 2009, 01:03:10 PM »
\



(strcat "Letter (8½x11\")")
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Hello Im new and have a quick question.
« Reply #2 on: March 13, 2009, 01:19:40 PM »
. . . and welcome to the swamp!

 8-)
James Buzbee
Windows 8

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Hello Im new and have a quick question.
« Reply #3 on: March 13, 2009, 01:31:02 PM »
\



(strcat "Letter (8½x11\")")

why STRCAT ?

Code: [Select]
(setq papersize "Letter (8½x11\")")

but maybe he forgot a cote "
(setq papersize "Letter (8½\"x11\")")
Keep smile...

Spike Wilbury

  • Guest
Re: Hello Im new and have a quick question.
« Reply #4 on: March 13, 2009, 01:43:31 PM »
why STRCAT ?

He probably type it to fast or simple forgot.... had happen to me many times... no biggy :)

JohnK

  • Administrator
  • Seagull
  • Posts: 10659
Re: Hello Im new and have a quick question.
« Reply #5 on: March 13, 2009, 01:47:00 PM »
i duno.  ...I'm not paying attention really; The high school hockey tourney is on in the big conf. room and i just added that one piece and posted it quick (cut and paste).
Sorry,
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Hello Im new and have a quick question.
« Reply #6 on: March 13, 2009, 03:04:55 PM »
well it happen often on me too.. :wink:
Keep smile...

hardeight

  • Guest
Re: Hello Im new and have a quick question.
« Reply #7 on: March 13, 2009, 03:40:23 PM »
Thanks for that Quick response. It worked great.
Now my problem is, some of the drawings are in Model Space and some are in Paper Space. So that script I wrote isn't going to cut it. I guess I will have to write the script to call on a separate Plot.lsp that uses variables in each drawing.
But this helps me on my command prompts.
That was driving me crazy.

A_LOTA_NOTA

  • Guest
Re: Hello Im new and have a quick question.
« Reply #8 on: March 14, 2009, 10:08:45 AM »
Why use a script? Why not use lisp for it all?

Code: [Select]
(if (= (getvar 'tilemode) 1)
    (plotModelSpace)
    (PlotPaperSpace)
 ); end if

hardeight

  • Guest
Re: Hello Im new and have a quick question.
« Reply #9 on: March 16, 2009, 04:31:59 PM »
That is basically what I ended up having to do. But I wanted to use it on multiple drawings. Basically a batch plot lisp that allows the user to pick an entire directory and it finds the relevant files to plot and writes a script to do that.

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Hello Im new and have a quick question.
« Reply #10 on: March 16, 2009, 05:09:05 PM »
That is basically what I ended up having to do. But I wanted to use it on multiple drawings. Basically a batch plot lisp that allows the user to pick an entire directory and it finds the relevant files to plot and writes a script to do that.

BLP2007 (Batch Lisp Process) can do it.
Keep smile...