Author Topic: SCRIPTCALL command (A2016)  (Read 1254 times)

0 Members and 1 Guest are viewing this topic.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1453
  • Marco
SCRIPTCALL command (A2016)
« on: November 15, 2016, 02:27:59 AM »
I discovered out right now the new SCRIPTCALL command  (A2016), someone has used it? There are some examples?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: SCRIPTCALL command (A2016)
« Reply #1 on: November 15, 2016, 07:27:20 AM »
Haven't used it myself but from the help:

You can invoke a script at startup or run a script using either the SCRIPT or the SCRIPTCALL command. The difference is that the SCRIPTCALL command can execute nested scripts in addition to commands. With the SCRIPT command, if a script is currently active when the SCRIPT command is invoked, the script is stopped.

Basically allows one to nest or chain scripts (like the call command in batch files). I typically only use scripts generated by, and invoked from LISP. While I've never been tripped up by the lilimitation of SCRIPT, its sibling command may prove useful some day. Thanks for the heads up Marc.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1453
  • Marco
Re: SCRIPTCALL command (A2016)
« Reply #2 on: November 15, 2016, 09:16:26 AM »
Haven't used it myself but from the help:

You can invoke a script at startup or run a script using either the SCRIPT or the SCRIPTCALL command. The difference is that the SCRIPTCALL command can execute nested scripts in addition to commands. With the SCRIPT command, if a script is currently active when the SCRIPT command is invoked, the script is stopped.

Basically allows one to nest or chain scripts (like the call command in batch files). I typically only use scripts generated by, and invoked from LISP. While I've never been tripped up by the lilimitation of SCRIPT, its sibling command may prove useful some day. Thanks for the heads up Marc.
For me the best method was to use (vl-cmdf "_.VBASTMT" ...), as long as you could. The script is less controllable in the event of errors and once launched you can not perform other operations at its end, see:
https://www.theswamp.org/index.php?topic=43869.msg492002#msg492002