LISP routines stopping in odd places

Discussion in 'AutoCAD' started by SiBanny, Apr 16, 2004.

  1. SiBanny

    SiBanny Guest

    I have a LISP routine that I use for plotting drawings with one click of a button, but the routine always seems to stop in some part of the PLOT command section (The exact location tends to vary). Can anyone see what I'm doing wrong?

    Also, the PSETUPIN command doesn't work either - is there something about file locations in LISP I don't know about?

    Cheers.

    ;Babtie_All_Black_A1
    (DEFUN c:Babtie_All_Black_A1 ()
    (COMMAND "textfill" "1")
    (COMMAND "expert" "2")
    (COMMAND "-view" "window" "Babtie" PAUSE PAUSE)
    (COMMAND "psetupin" "O:/Jobs/Cad/Plot_Styles/styles.dwg" "*")
    (COMMAND "-plot" "yes" "" "HP1050c.pc3" "Oversize: ISO A1 (portrait)" "Millimeters" "Landscape" "No" "view" "Babtie" "Fit"

    "Center" "Yes" "Babtie_All_Black_A1" "Yes" "No" "No" "No" "No" "Yes" "Yes")
    (COMMAND "Filedia" "1")
    (COMMAND "expert" "0")
    (PRINC)
    )
     
    SiBanny, Apr 16, 2004
    #1
  2. SiBanny

    cadtown Guest

    Why don't you type "-PLOT" at command prompt and see for yourself exactly where it is stopping. The "Command" keyword works exactly as if you were typing at the AutoCAD command prompt. Note that the empty quotes ("") represent "Enter" at command prompt.

    Cheers,

    http://www.cadtown.com
     
    cadtown, Apr 16, 2004
    #2
  3. SiBanny

    Tom Smith Guest

    Or turn on cmdecho and watch the prompts as the routine runs.
     
    Tom Smith, Apr 16, 2004
    #3
  4. SiBanny

    Barr Guest

    Is it possible your drawing already has a view named Babtie, and it's
    asking you if you want to redefine that view?

    click of a button, but the routine always seems to stop in some part
    of the PLOT command section (The exact location tends to vary). Can
    anyone see what I'm doing wrong?
    about file locations in LISP I don't know about?
    (portrait)" "Millimeters" "Landscape" "No" "view" "Babtie" "Fit"
     
    Barr, Apr 16, 2004
    #4
  5. SiBanny

    Jamie Duncan Guest

    Hey DB

    I think the expert setting takes care of that - but I may be wrong. Why not
    expert 5 and then you don't get any are you sure questions.

    So where's the pic?


    --
    Jamie Duncan

    "How wrong it is for a woman to expect the man to build the world she wants,
    rather than to create it herself."
    - Anais Nin (1903-1977)
     
    Jamie Duncan, Apr 16, 2004
    #5
  6. SiBanny

    Barr Guest

    I'm not an expert in Expert. I guess I auto look into that.
    It IS a cutie. I found it a few weeks ago while preparing the attic
    for new drywall. I know exactly where it is... now where did that
    scanner go???
    I also never sent Saara a scan of my drawings of a trapezoidal
    outhouse I made 25 years ago. "right at the top of my list, I'm
    working my way up to it"

    Btw, you never told me your *real* name. Can't be Jamie on your birth
    certificate, now can it?
    -doug
     
    Barr, Apr 16, 2004
    #6
  7. SiBanny

    SiBanny Guest

    Have already done all that - this routine started off as a script, but needed the pause in it so I converted into LISP. As a matter of course, I would go through all the commands on the command line forst to get the right order, then copy things from the text window into the script/LISP routine.

    The problem here is that the point where it stops varies each time I run it - sometimes its at the .ctb file location, sometimes at the paper size, etc..
     
    SiBanny, Apr 16, 2004
    #7
  8. SiBanny

    Jamie Duncan Guest

    Btw, you never told me your *real* name. Can't be Jamie on your birth
    certificate, now can it?
    -doug


    huh?

    Jamie Dee



    --
    Jamie Duncan

    "How wrong it is for a woman to expect the man to build the world she wants,
    rather than to create it herself."
    - Anais Nin (1903-1977)
     
    Jamie Duncan, Apr 16, 2004
    #8
  9. SiBanny

    SiBanny Guest

    Have now sussed it I think - I didn't have .ctb on the end of the ctb file name. its the smallest things sometimes......
     
    SiBanny, Apr 16, 2004
    #9
  10. SiBanny

    Barr Guest

    Now hold up there. You're a sophisticated Ontarian, almost as old as I
    am. People didn't name their children with nicknames back in our day.
    I myself suffered under the monicker Dougie all my childhood (some of
    my parents' friends (now 90) still call me Dougie), but that ain't my
    birth name, schweetie. ps - Technically we're discussing Name
    Customization here, which is perhaps why Annie's giving us latitude!
     
    Barr, Apr 16, 2004
    #10
  11. SiBanny

    Jamie Duncan Guest

    You caught me on the Dee - I hate my middle name, so always initial, and if
    anyone ask's - I just say Dee.
    But Jamie it is - but then again I'm originally from Montreal...
    Jamie Duncan

    "How wrong it is for a woman to expect the man to build the world she wants,
    rather than to create it herself."
    - Anais Nin (1903-1977)
     
    Jamie Duncan, Apr 16, 2004
    #11
  12. SiBanny

    Barr Guest

    Ahhhh. J'aime anagrammatized!
     
    Barr, Apr 16, 2004
    #12
  13. exactement

    --


    Jamie Duncan

    Consulting - If you're not part of the solution, there's good money in
    prolonging the problem.
     
    Jamie Duncan \(remove lock to reply\), Apr 16, 2004
    #13
  14. SiBanny

    Barr Guest

    Of course if you were an infamous ET, it'd be Je t'aime.
     
    Barr, Apr 16, 2004
    #14
  15. SiBanny

    Anne Brown Guest

    How do I say "please return to the topic" in French? Eh?
    --
    Anne Brown
    Discussion Groups Administrator
    Autodesk, Inc.


    Barr wrote:
    (snip)
     
    Anne Brown, Apr 16, 2004
    #15
  16. soit prudent et fait attention au directrice s'il vous plait

    <g>


    Jamie Duncan

    Consulting - If you're not part of the solution, there's good money in
    prolonging the problem.
     
    Jamie Duncan \(remove lock to reply\), Apr 16, 2004
    #16
  17. SiBanny

    Barr Guest

    Nunh unh. It means

    "That prude has been directed to pay
    more attention to threadjacks or she'll
    find herself stamping license plates."
     
    Barr, Apr 16, 2004
    #17
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.