Results 1 to 3 of 3

Thread: why does vlr-insert-reactor doesn't work?

  1. #1
    Member
    Join Date
    2009-08
    Posts
    3
    Login to Give a bone
    0

    Default why does vlr-insert-reactor doesn't work?

    I want do some thing when a block was been inserted into autocad,so I make a reactor like this:

    (vlr-insert-reactor nil '((:vlr-endinsert . vlr-trace-reaction)))

    but it doesn't work when I have inserted any block. It seems like this reactor was never exsited.

    Hope you can help me. Thanks.

  2. #2
    Certifiable AUGI Addict ccowgill's Avatar
    Join Date
    2004-08
    Location
    Iron Station, NC
    Posts
    3,198
    Login to Give a bone
    0

    Default Re: why does vlr-insert-reactor doesn't work?

    Welcome to AUGI and congrats on your first post.

    I have always used a command reactor for causing commands to fire when inserting a block.
    Code:
    (if    (not Command_Ending_Reactor)
          (setq Command_Ending_Reactor
             (vlr-command-reactor
               nil
               '((:vlr-commandended
              .
              Command_Ended_Command
             )
            )
             ) ;_ end of vlr-command-reactor
          ) ;_ end of setq
          () ;_ the reactor is already loaded
        ) ;_ end of if
    then I define my command ended command with the in reactor name and the in command, and compare the in command to the command I am looking for, in your case "insert" or "-insert" If it matches, it will run the program.

  3. #3
    Member
    Join Date
    2009-08
    Posts
    3
    Login to Give a bone
    0

    Default Re: why does vlr-insert-reactor doesn't work?

    Well,thank you very much for helping me.

    I'll go and try that!

Similar Threads

  1. DB insert doesn't work...
    By randyspear in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2009-10-09, 01:21 PM
  2. Replies: 1
    Last Post: 2009-08-14, 01:05 PM
  3. Replies: 3
    Last Post: 2006-03-23, 10:25 PM
  4. vlr-sysvar-reactor doesn't fire
    By pnorman in forum AutoLISP
    Replies: 1
    Last Post: 2005-04-12, 03:19 PM
  5. Reactor doesn't work in Acad2005
    By Borg in forum AutoLISP
    Replies: 0
    Last Post: 2005-01-18, 08:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •