Load dvb project at startup

Discussion in 'AutoCAD' started by Jon Bilbao, Aug 11, 2003.

  1. Jon Bilbao

    Jon Bilbao Guest

    I wish to create a setup program that install a dvb application
    (myprogram.dvb) at startup.

    I have installed yet manually with Autocad menu => Tools/Load
    applicacion/Startup suite
    but now I wish to do it by an external application setup.exe (with Visual
    Basic).

    Thanks your interest
     
    Jon Bilbao, Aug 11, 2003
    #1
  2. Jon Bilbao

    Ed Jobe Guest

    Why do you need to load it externally? How about loading at startup with
    acad.lsp or acaddoc.lsp?
     
    Ed Jobe, Aug 11, 2003
    #2
  3. Jon Bilbao

    Jon Bilbao Guest

    I need a setup up program wich make easy to "install" my application.

    I don´t know nothing about lisp (I´m VB programer)
     
    Jon Bilbao, Aug 11, 2003
    #3
  4. Jon Bilbao

    Ed Jobe Guest

    Its not hard. You don't really need to know lisp, since you're not doing
    anything else but loading the dvb.

    Acad.lsp is an ascii file you create. Autocad looks for it at startup and if
    it finds it, runs it. Just open Notepad, add this code, and save it to a
    support folder as "acad.lsp". Make sure it doesn't get saved as
    'acad.lsp.txt'

    ****Paste code****
    ;;; loads visual lisp commands
    (vl-load-com)
    ;;;Load your dvb, change the file path to suit your needs.
    ;;;Lisp strings require double backslashes. The first one is a control
    character.
    (vl-vbaload "c:\\folder\\filename.dvb")
    ****end code****
     
    Ed Jobe, Aug 11, 2003
    #4
  5. Jon Bilbao

    Ed Jobe Guest

    If you still want to do it from the vb project, the AcadApplication object
    has LoadDVB and RunMacro methods.
     
    Ed Jobe, Aug 11, 2003
    #5
  6. Hi Jon,

    Depending on what your program is actually doing, you may not want it to
    load when AutoCAD runs, but only load when a user wants to use some
    functionality from the program.

    There is no point in writing any form of VB application to load it into
    AutoCAD as there are several methods of doing this, none of which require a
    separate program.

    Ed Jobe has given you a simple method, the only area where I would change
    Ed's idea, is by creating a menu file to run the functions in my program and
    to place Ed's code in the MNL file for my menu.

    This has the advantage that if the user has no need to load your program he
    can unload the menu and your file wont be loaded in future.

    It also occurs to me (and your post in not clear on this) that you want a
    program to install your program on the computer. If this is the case then
    look at Inno Setup, the cheapest (free) and easiest to use that I've found.

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Aug 11, 2003
    #6
  7. Jon Bilbao

    Jon Bilbao Guest

    Thanks to all (also Flemming Thorsager who has mentioned the manual
    vbadev.pdf - chapter 11).

    I´m testing these helfull ideas and I´m sure it will solve my question.
     
    Jon Bilbao, Aug 12, 2003
    #7
  8. Jon Bilbao

    Kuba Szostak Guest

    I wish to create a setup program that install a dvb application

    HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R15.0\ACAD-1:409\Profiles\<<Unna
    med Profile>>\Dialogs\Appload\Startup

    Regards
    Kuba
     
    Kuba Szostak, Aug 13, 2003
    #8
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.