Results 1 to 2 of 2

Thread: Leaders on layer share

  1. #1
    AUGI Addict madcadder's Avatar
    Join Date
    2000-11
    Location
    Too far from the beach
    Posts
    1,054
    Login to Give a bone
    0

    Default Leaders on layer share

    I got really tired of my leaders not being on my dimensions layer, so I put this together.
    Not sure if something similar has been shared, so here it is...
    I put it in my acaddoc
    If you can make it function better let me know.

    Code:
    ;;;
    ;;; Leaders on "Dimensions" layer reactor
    ;;;
    
    (IF (NOT |leader_reactor|)
      (SETQ	|leader_reactor| (VLR-COMMAND-REACTOR nil
    	   '((:VLR-COMMANDWILLSTART . startleadercommand)
    	     (:VLR-COMMANDENDED . endleadercommand)
    	     (:VLR-COMMANDCANCELLED . cancelleadercommand)
    	    )
    	 )
      )
    )
    
    (DEFUN startleadercommand (calling-reactor startcommandinfo / |commandstart|)
      (SETQ |leader_clayer| (GETVAR "clayer"))
      (SETQ |commandstart| (CAR startcommandinfo))
      (IF (OR (= |commandstart| "LEADER")
    	  (= |commandstart| "MLEADER")
    	  (= |commandstart| "QLEADER")
          )
        (SETVAR "clayer" "DIMENSIONS")
      )
      (PRINC)
    )
    
    (DEFUN endleadercommand	(calling-reactor endcommandinfo / |commandend|)
      (SETQ |commandend| (CAR endcommandinfo))
      (IF (OR (= |commandend| "LEADER")
    	  (= |commandend| "MLEADER")
    	  (= |commandend| "QLEADER")
          )
        (SETVAR "clayer" |leader_clayer|)
      )
      (PRINC)
    )
    
    (DEFUN cancelleadercommand (calling-reactor cancelcommandinfo / |commandcancel|)
      (SETQ |commandcancel| (CAR cancelcommandinfo))
      (IF (OR (= |commandcancel| "LEADER")
    	  (= |commandcancel| "MLEADER")
    	  (= |commandcancel| "QLEADER")
          )
        (SETVAR "clayer" |leader_clayer|)
      )
      (PRINC)
    )
    Last edited by madcadder; 2021-03-11 at 04:11 PM.

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: Leaders on layer share

    Lee Mac has one for directing objects created from AutoCAD commands to layers you specify. http://www.lee-mac.com/layerdirector.html

Similar Threads

  1. Allow Tag and Keynote Leaders to be curved like Text Leaders
    By Wish List System in forum Revit Architecture - Wish List
    Replies: 0
    Last Post: 2012-09-05, 06:23 PM
  2. To share or not to share . . . that is the question
    By crispin.schurr in forum Revit Architecture - Families
    Replies: 3
    Last Post: 2007-05-18, 03:24 AM
  3. Change layer of all leaders
    By Mr Cory in forum AutoLISP
    Replies: 8
    Last Post: 2007-03-21, 10:54 AM
  4. AutoCAD 2004 is printing leaders that are on an off layer
    By lconnolly in forum AutoCAD Plotting
    Replies: 4
    Last Post: 2006-07-27, 11:20 PM
  5. Quick Leaders still print when layer is off
    By panelbreeze in forum AutoCAD General
    Replies: 1
    Last Post: 2006-02-09, 12:46 AM

Posting Permissions

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