Results 1 to 2 of 2

Thread: viewport reactor

  1. #1
    Member n_withers's Avatar
    Join Date
    Kalamazoo, MI
    Login to Give a bone

    Default viewport reactor

    I have created a reactor that turns off the "navvcubedisplay" when in modelspace or a viewport. The viewport part only works when moving to a viewport from paperspace, not when moving from one viewport to another. Is there some kind of reactor that would fire when moving from one viewport to another, similar to the :vlr-layoutSwitched event for the vlr-miscellaneous-reactor when moving between layouts?

    Here is my code so far:
    (vlr-command-reactor "Turn Off Navvcubedisplay" '((:vlr-commandEnded . endCommand)))
    (defun endCommand (calling-reactor endcommandInfo / thecommandend)
    	(setq thecommandend (nth 0 endcommandInfo))
    		((= thecommandend "MSPACE") (setvar "navvcubedisplay" 0))
    		((= thecommandend "TILEMODE") (if (= 1 (getvar "tilemode"))(setvar "navvcubedisplay" 0)))
    	);end cond
    );end defun

  2. #2
    Administrator Opie's Avatar
    Join Date
    jUSt Here (a lot)
    Login to Give a bone

    Default Re: viewport reactor

    You might need to look at the VLR-sysVarChanged reactor with the CVPORT system variable. Checking it along with the value of the NAVVCUBEDISPLAY variable, you should find a possible solution.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.

Similar Threads

  1. Replies: 2
    Last Post: 2017-08-09, 01:04 PM
  2. Replies: 1
    Last Post: 2014-11-04, 03:32 PM
  3. vlr-dwg-reactor issue MY FIRST REACTOR
    By treaves04413213 in forum AutoLISP
    Replies: 21
    Last Post: 2013-10-18, 12:36 PM
  4. Replies: 1
    Last Post: 2009-08-14, 01:05 PM
  5. Smaller Viewport to hide / mask part of a larger Viewport
    By thomas.stright in forum AutoCAD General
    Replies: 5
    Last Post: 2006-04-05, 11:03 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