ScriptPro Failing Every Other File

ScriptPro Failing Every Other File

Dillon9WA93
Observer Observer
585 Views
5 Replies
Message 1 of 6

ScriptPro Failing Every Other File

Dillon9WA93
Observer
Observer

I was wondering if anyone has come across the issue of ScriptPro failing on every other file? I have been bashing my head against this brick wall for a few days now and before I abandon it all together I'm hopeful someone here has some suggestions..

 

I have a script, that calls on a lisp.  Manually I can open the files and either run the script or load/run the lisp no problem.  I feel fairly confident in the makeup of these because they do function but they are attached if you would like to see. Note that they are edited to include a generic path. (SCR files not allowed so its a .txt file).

 

ScriptPro can call on the script to run the lisp successfully, but it fails out every other file.  So I just run it again on the failed files and the behavior repeats until I'm down to my last fail. It'll handle this last fail solo just fine.  So essentially ScriptPro is working for this, I just have to keep running it on the failed files until nothing remains. Something I'm hoping to avoid.

 

I have a script/lisp routine that is very similar. The script is nearly identical to the uploaded .txt except pointed correctly so i will not include that.  The lisp file EditToPrep.lsp is uploaded.  ScriptPro gives me no issue running through the list and executing this without fail.

 

The major difference between the two lisp commands (from what I can tell) is the _.Open command. I'm wondering if that could be causing an issue with ScriptPro? Some sort of memory issue?

 

Other things to note: I'm running on Windows11 on AutoCAD2024.  ScriptPro is working on multiple files consecutively for me in other scenarios (EditToPrep.lsp for example)

 

If anyone has any suggestions I'd appreciate it!

0 Likes
586 Views
5 Replies
Replies (5)
Message 2 of 6

paullimapa
Mentor
Mentor

perhaps try AutoScript which also a free plug-in:

https://www.cadig.com/products/autocad-script-pro.php


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 6

Dillon9WA93
Observer
Observer

You're the man, thank you! AutoScript is working great for me for what I need here. This will keep me moving forward!

 

For anyone struggling with the same issue, some things to keep in mind when using AutoScript vs ScriptPro:

 

AutoScript does not run in SDI Mode (1), and also does not automatically close drawings like ScriptPro.  To get around this:

  • I run AutoScript in SDI Mode (0)
  • Set the SDI (1) within the lisp that my script calls so the lisp can function over multiple drawings
  • Execute my lisp routines
  • Add a line at the end to run a command to return the SDI Mode (0) 
  • Add a close command

 

I still am curious as to what is causing ScriptPro to fail...I've been using it successfully in a lot of instances and at this point its purely curiosity to understand it better. I'll be exploring using AutoScript to replace it around the board at this point. The log file isn't as detailed or pretty to read but I'll take the functionality - thanks again.

0 Likes
Message 4 of 6

paullimapa
Mentor
Mentor

Others here have run into that issue with ScriptPro as well. Got to keep in mind that it's no longer a supported program which is too bad which is why alternatives like AutoScript is a plus...for now...


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 6

jsen5N2Z3
Participant
Participant

Thnaks, this works great. 

0 Likes
Message 6 of 6

paullimapa
Mentor
Mentor

glad that worked out for you...cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes