Bug in <vl-cmdf> function

Discussion in 'AutoCAD' started by MadCAD, Sep 16, 2004.

  1. MadCAD

    MadCAD Guest

    I'm sure there is a local and NOT declared variable inside <vl-cmdf>
    function and the symbol name is REF and the type is 'LIST.
    Look here
    (setq ref "My local variable of any type")
    (vl-cmdf "_AUDIT" "_Y")

    Bla-bla....
    Command: (vl-cmdf "_AUDIT" "_Y")
    _AUDIT
    1058 Blocks audited? [Yes/No] <N>: _Y
    Pass 1 35 objects audited
    Pass 2 35 objects audited
    Pass 3 700 objects audited
    Total errors found 0 fixed 0


    then
    Command: !ref
    ((3.2746 2.98598) (34.2242 25.9559))
     
    MadCAD, Sep 16, 2004
    #1
  2. MadCAD

    MadCAD Guest

    Ok, I realize the problem. It was my bug in one of my reactor callbacks that
    was trigered by :VLR-commandWillStart.
    .....
    Thanks,


     
    MadCAD, Sep 16, 2004
    #2
  3. Doesn't happen to me either, in vanilla 2005.

    Command: (setq ref "Test")
    "Test"
    Command: (vl-cmdf "._Line" (getpoint) (getpoint) "")
    .._Line Specify first point:
    Specify next point or [Undo]:
    Specify next point or [Undo]:
    Command: T
    Command: !ref
    "Test"

    --
    R. Robert Bell


    I'm sure there is a local and NOT declared variable inside <vl-cmdf>
    function and the symbol name is REF and the type is 'LIST.
    Look here
    (setq ref "My local variable of any type")
    (vl-cmdf "_AUDIT" "_Y")

    Bla-bla....
    Command: (vl-cmdf "_AUDIT" "_Y")
    _AUDIT
    1058 Blocks audited? [Yes/No] <N>: _Y
    Pass 1 35 objects audited
    Pass 2 35 objects audited
    Pass 3 700 objects audited
    Total errors found 0 fixed 0


    then
    Command: !ref
    ((3.2746 2.98598) (34.2242 25.9559))
     
    R. Robert Bell, Sep 16, 2004
    #3
  4. Do you have any reactor-based code running?

    Try doing a (vlr-remove-all) before running this.
     
    Tony Tanzillo, Sep 17, 2004
    #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.