Script line limitations

Sep 02, 2008 3 Replies

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


does a + continue a line?

Bob

Hi,

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

grtz Erik

Hi,

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

grtz Erik

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required