AC 2005: Limiations to script length?

Discussion in 'AutoCAD' started by Joerg Spoettl, Jan 31, 2007.

  1. Hello,

    I have a script with ca 8500 lines. Running this script causes strange,
    not reproducable misinterpretation and therefore mistakes.
    One way that worked for me is to split the scriptfile into portions of
    around 1000 lines, running one script after the other.

    The question is, if there is a known limitation of the number of lines in a
    script?

    bye
    joerg
     
    Joerg Spoettl, Jan 31, 2007
    #1
  2. Joerg Spoettl

    gegematic Guest

    Hello,
    I've experienced the same, with somes scripts that are not as long as yours.
    This scripts are used to plot multiples files, loaded as xref, and
    containining somes pictures (image)
    after around 200 plot, autocad no longer load image, but go on script/plot.
    but i can't have a exact rule of the number of plot when error occurs.
    so i've splited at 150.
    An other strange with scripts is that after an cancel on a script
    execution, the next call to script is not evluated:
    etc ...
     
    gegematic, Feb 1, 2007
    #2
  3. Am Thu, 01 Feb 2007 09:19:22 +0100 schrieb gegematic:
    Ok, so some Acad bug, I suppose.
    Yes, same here. Sometimes when I want to start the script, Acad adds some
    character before the first command in the script, causing it to terminate.
    Retrying immediately after this, it runs without a problem.

    Well, since it works when the script is split, and in addition it works
    calling the second script from the frist and so on without any 'mistakes',
    I can live with that.

    greets
    j
     
    Joerg Spoettl, Feb 1, 2007
    #3
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.