Help: VBA project open/locked when run

Discussion in 'AutoCAD' started by Kevin_Van, Mar 28, 2005.

  1. Kevin_Van

    Kevin_Van Guest

    A person in the office created a VBA project that is our shared menu interface to the office blocks library & layer tools. It gets launched by a lisp from a toolbar. The problem is when the first person initiates the menu, that person has it open (locked) & it can't be edited until they exit AutoCAD. Is there anyway it can launched & run but not opened/locked?

    If this helps, the following is the lisp that first runs the VBA project:
    (defun c:URSCL()
    (setq OLDCMD (getvar "CMDECHO"))
    (setvar "CMDECHO" 0)
    (command "-vbarun" "G:/CAD-UTILS/VBA/CAD LIBRARY/URSCL.dvb!URSCL.StartMe")
    (setvar "CMDECHO" OLDCMD)
    (princ)
    )

    Thanks for any & all help.
     
    Kevin_Van, Mar 28, 2005
    #1
  2. Kevin_Van

    TomD Guest

    They way I understand it, you have to be sure unload the DVB after running
    the routine(s).
     
    TomD, Mar 28, 2005
    #2
  3. Hi,

    If you have developed a routine to the extent that you have deployed it to
    the office, surely it should not need editing on a regular basis.

    Make a copy for editing, and deploy "out of hours".

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    interface to the office blocks library & layer tools. It gets launched by a
    lisp from a toolbar. The problem is when the first person initiates the
    menu, that person has it open (locked) & it can't be edited until they exit
    AutoCAD. Is there anyway it can launched & run but not opened/locked?
     
    Laurie Comerford, Mar 28, 2005
    #3
  4. Kevin_Van

    Kevin_Van Guest

    Thanks for all the replies.
    You're right - it's no big deal to live with. We have been doing the same workaround of keeping a master and deploying changes afterhours when warranted. I just thought there might be some command/process we don't know about to free it up after use.
    Thanks again for the help.
     
    Kevin_Van, Mar 28, 2005
    #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.