Results 1 to 9 of 9

Thread: Need some basic script help...

  1. #1
    Member
    Join Date
    2005-03
    Posts
    3

    Default Need some basic script help...

    I've got a script that I have written to use with ScriptPro. It is a basic plot script so I can plot multiple drawing files. My question is: What is the best way to close or end my script file? Right now it gets to the end of my script and waits for the timeout to move on to the next file. I'm just trying to speed up the process. Any advice or help would be very much appreciated. Thanks.....Here is what my script looks like:

    -plot
    y
    model
    \\vanes-s003\HPLJ5KN_ENG
    11x17
    inches
    landscape
    no
    limits
    fit
    center
    yes
    nawcad.ctb
    yes
    no
    no
    no
    yes

  2. #2
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Need some basic script help...

    Hi

    Please note I've *moved* this thread from the AutoLISP Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Moderator

  3. #3
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Need some basic script help...

    Hi

    Have you taken a look at utilizing Page Setups instead?

    What about BatchPlot (AutoCAD 2000, 2000i & 2002) or Publish (AutoCAD 2004 & 2005).

    A Search within the forums will return a lot of useful information on the above.

    Have a good one, Mike

  4. #4
    I could stop if I wanted to tyshofner's Avatar
    Join Date
    2004-03
    Location
    Dallas, Tx
    Posts
    229

    Default Re: Need some basic script help...

    ScriptPro should close the file after your script completes, I use this all the time in conjunction with a lisp routine I wrote. It sails through the plots!! If its not closing the files you could always just add:

    qsave
    close

    To the end of your script. You save the file first before closing it so you won't recieve the warning dialog box asking you to save the file.

    Ty

  5. #5
    Member
    Join Date
    2005-02
    Location
    Somewhere in Nevada
    Posts
    20

    Question Re: Need some basic script help...

    Okay, I have some questions even more basic than what you just covered: you guys seem to be talking about a menu macro. Are you talking about an external script file? The Windows "command" window (DOS emulation) does not recognize and will not run .scr files. (Our office is running Windows 2000 and AutoCAD 2000.)

    I have a feeling I'm missing something entirely here. How are you guys running script files???
    Last edited by thebatman_; 2005-06-11 at 04:28 AM.

  6. #6
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Need some basic script help...

    Quote Originally Posted by thebatman_
    I have a feeling I'm missing something entirely here. How are you guys running script files???
    Hi

    We are talking about AutoCAD Script files (SCR) here... basically a series of AutoCAD commands combined into script macro that is run from inside AutoCAD -

    AutoCAD Online Help File [F1] -> Contents tab -> Customization Guide -> Slides and Command Scripts -> Create Command Scripts

    +

    AutoCAD Online Help File [F1] -> Index tab -> SCR (script) files

    AutoCAD Online Help File [F1] -> Index tab -> SCRIPT command

    AutoCAD Online Help File [F1] -> Index tab -> scripting

    AutoCAD Online Help File [F1] -> Index tab -> ScriptPro (migration tool)

    AutoCAD Online Help File [F1] -> Index tab -> scripts

    Have a good one, Mike

  7. #7
    Member
    Join Date
    2005-02
    Location
    Somewhere in Nevada
    Posts
    20

    Thumbs up Re: Need some basic script help...

    Thank you, I will check that out.

    Back in DOS days, the biggest advantage of script files was that they could be run outside of CAD and across as many dwg files as you wanted, and they were run directly by and from DOS. Obviously, that is not the case today. I will check out your links to bring myself up to speed.

    Thanks again.

  8. #8
    Administrator Mike.Perry's Avatar
    Join Date
    2001-03
    Posts
    13,499

    Default Re: Need some basic script help...

    Quote Originally Posted by thebatman_
    ... the biggest advantage of script files was that they could be run outside of CAD and across as many dwg files as you wanted...
    Hi

    Look at ScriptPro, if you have not already got it, you can obtain it from the Autodesk web site (free download).

    Try the forum search facility for additional information...

    Key Words: ScriptPro

    Have a good one, Mike

  9. #9
    Member
    Join Date
    2005-06
    Posts
    19

    Default Re: Need some basic script help...

    try ezscript pro, its way better than script pro, it doesn't have to load autocad each time you open a new drawing, it's much faster and it's also free.

    It needs to be configured first, but there is full instructions after that, it's a breeze.

Similar Threads

  1. Basic C# question
    By francisco324238 in forum Revit - API
    Replies: 3
    Last Post: 2012-03-07, 02:27 PM
  2. can you create plans in revit? basic basic
    By comical_wenger in forum Revit Architecture - General
    Replies: 5
    Last Post: 2009-06-22, 01:36 PM
  3. 2X Outside of Basic Dimension
    By todd.mackay in forum AutoCAD General
    Replies: 11
    Last Post: 2008-03-04, 08:41 PM
  4. Basic dimensions GD&T
    By Robert.Hall in forum AutoCAD General
    Replies: 19
    Last Post: 2007-12-11, 12:49 PM
  5. ucsicon, probably basic but...
    By guyver1 in forum AutoCAD General
    Replies: 1
    Last Post: 2007-10-10, 08:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •