Script line limitations

Discussion in 'AutoCAD' started by E. Wijbrandts, Sep 2, 2008.

  1. Hi,

    During script running in AC2002 (+ third party application) very long
    script lines are not processed correctly.
    It seems to me that these particular long lines are truncated at the
    commandline to exactly 256 characters.
    Needless to say this results in error messages en faulty operations.

    The purpose is to attach a string value to variable "%STS_AssyOmk"
    within model MAIN#1

    OriginalScriptLine :
    (3rdPartyCalcuSet "MAIN" "1" "%STS_AssyOmk" "(list (list 1 800 1
    857101)(list 2 2000 1 857102)(list 3 2000 1 857106)(list 4 2000 -1
    8571032)(list 2 2000 1 857102)(list 3 2000 1 857103)(list 2 2000 -1
    857102)(list 4 2000 -1 8571030)(list 3 2000 1 857107)(list 5 1740 -1
    8571039))" nil)

    CommandLineResult :
    (3rdPartyCalcuSet "MAIN" "1" "%STS_AssyOmk" "(list (list 1 800 1
    857101)(list 2 2000 1 857102)(list 3 2000 1 857106)(list 4 2000 -1
    8571032)(list 2 2000 1 857102)(list 3 2000 1 857103)(list 2 2000 -1
    857102)(list 4 2000 -1 8571030)(list 3 2000 1 857107)(li

    When replacing the 3rd party command with standard lisp "setq" the
    result is unfortunately the same.

    Q: Is this a known limitation within scripting ?
    Q: Is there a work-a-round for it ?

    thnx in advance & grtz
    E. Wijbrandts
     
    E. Wijbrandts, Sep 2, 2008
    #1
  2. E. Wijbrandts

    Guest Guest

    does a + continue a line?

    Bob
     
    Guest, Sep 2, 2008
    #2

  3. Hi,

    Problem solved. I wrote a Lisp for checking .scr-files.
    Truncating lines with length > 256 characters to lines with length =
    approximately 64 characters did the trick.

    grtz Erik
     
    E. Wijbrandts, Sep 5, 2008
    #3

  4. Hi,

    Problem solved. I wrote a Lisp for checking .scr-files.
    Truncating lines with length > 256 characters to lines with length =
    approximately 64 characters did the trick.

    grtz Erik
     
    E. Wijbrandts, Sep 5, 2008
    #4
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.