why cant this run?

Discussion in 'AutoCAD' started by kemp, Mar 24, 2005.

  1. kemp

    kemp Guest

    I'm trying to make a command line method to load a vb script I just
    created but I'm missing something really basic it seems.

    What I have so far is this:

    (vl-vbaload "Setup.dvb")

    (defun c:setup ()
    (vl-vbarun "Setup")
    )

    I have the path to this file in the support paths, I can see the dvb
    file is getting loaded, but the form I want to appear is not showing up.
    The dvb project name has been renamed to "Setup" to match the file name.
    I guess maybe I'm just missing the data that will load UserForm1?

    Any help is appreciated, thanks!

    kemp
     
    kemp, Mar 24, 2005
    #1
  2. kemp

    juno Guest

    Add this code to you Module1:
     
    juno, Mar 24, 2005
    #2
  3. And... How to make a test: if specified vba-script is already loaded, run
    macros otherwise - first load, then run.
     
    Koistya `Navin \(TechProject\), Mar 26, 2005
    #3
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.