Start VBA with LISP

Discussion in 'AutoCAD' started by rini, Apr 13, 2004.

  1. rini

    rini Guest

    Hi,

    I have a problem when I start my DVB-file with LISP.
    It will repeat my "First Point" twice. Is there any way to prevent this???

    I have tried to add <ThisDrawing.SendCommand ""> in the dvb-file. But then I can't start the program by using "Enter" or RMB..

    ************
    In LISP-file:
    (defun c:line ()
    (VL-VBALOAD "u:/vba/SpecialLineCommand.dvb")
    (vl-vbarun "SpecialLine")
    (princ)
    )
    *************

    *****************
    In command-line:

    Command: line
    _.-VBARUN
    Macro name: SpecialLine
    First Point:
    First Point:
    ******************

    Regards
    Rikard
     
    rini, Apr 13, 2004
    #1
  2. rini

    rini Guest

    OOPS!!

    I've found it myself... CMDECHO=0

    /Rikard
     
    rini, Apr 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.