Working with Scriptpro

Discussion in 'AutoCAD' started by Juan Silva, Jul 12, 2004.

  1. Juan Silva

    Juan Silva Guest

    Hi everyone,

    I created a script that changes the xref path from a full path to no path
    using the REDIR command. When I use the script within Architectural Desktop
    2005 it works fine.

    But I wanted to use ScriptPro to run the script on all the drawings in one
    folder and I keep getting errors.

    In the Scriptpro window I get the error message: *error* Acad failed to
    start. Yet AutoCAD did start and opened the first drawing, but also had an
    error message. Within autocad I get the following message:

    Command: (load "scriptpro.lsp")
    Command: (acet-script-run "S:/CADLIBRARY/ADT5/SCRIPTS/REMOVE XREF PATH.SCR"
    T)
    Pre-processing script...
    "AutoCAD: Problem in loading VBA"
    (#<VLA-OBJECT IAcadApplication 00b9b5e4> GETINTERFACEOBJECT
    "spCatch2_dll.spCatch_dll_cls")
    Unable to obtain spCatch2.dll object.
    "bad argument type: VLA-OBJECT nil"
    (nil TMPSCRFILENAME)
    Command:
    Command:
    Command: bad argument type: stringp nil

    Does anyone know what I'm doing wrong?

    Juan
     
    Juan Silva, Jul 12, 2004
    #1
  2. Juan Silva

    zeha Guest

    Juan,

    First try to locate the express tools exist
    type on the command line

    (findfile "scriptpro.lsp")

    it return the path

    and

    (findfile"scriptpro.exe")

    if not then put the express tools it in the search path

    or reinstall or install express tools

    function acet-script-run is also in the file scriptpro.lsp

    good luck

    hope this helps
     
    zeha, Jul 13, 2004
    #2
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.