custom arc'd leader lisp..

Discussion in 'AutoCAD' started by C Witt, Aug 20, 2004.

  1. C Witt

    C Witt Guest

    We use the attached lisp to draw arc'd leaders.. the problem being we
    can't "update" them, they have to be redrawn.

    Is there a way we can change this lisp such that it is possible to
    "update" like any other dim/leader?? or does anyone have a ready-made
    command that will sufice that they are willing to share..?

    (posted this a few months ago, and got no responce).

    (defun c:AA (/ SP ANG ARRANG LENG EP)
    (setq on (getvar "osmode"))
    (setvar "osmode" 0)
    (command "undo" "m")
    (setq SP
    (getpoint "\n Arrow start point"))
    (setq ANGP
    (getpoint SP "\n Arrow angle"))
    (setq ARRANG (angle SP ANGP))
    (if (= 0.0 (getvar "DIMASZ"))(setq LENG 2.0) (setq LENG (getvar "DIMASZ")))
    (setq EP (polar sp arrang (* LENG (getvar "DIMSCALE"))))
    (command "PLINE" SP "W" "0.0" (* 0.333 LENG (getvar "DIMSCALE")) EP "W" "0.0" "0.0" "ARC")
    (setvar "osmode" on)
    )
     
    C Witt, Aug 20, 2004
    #1
  2. C Witt

    kemp Guest

    Will a splined leader work as a sufficient replacement? If so you can
    use the associative leaders built into cad. We use them in favor of our
    old arc leaders but they do not draw true arcs...

    kemp
     
    kemp, Aug 20, 2004
    #2
  3. C Witt

    C Witt Guest

    we try to avoid splines. they don't react that well with hatch, and a
    few other things (that and as you say, they don't draw true arcs).
     
    C Witt, Aug 20, 2004
    #3
  4. C Witt

    kemp Guest

    In that case the only solution I can think of is to use reactors to
    redraw the leader for you. I have not had any luck creating a reactor
    that works in situations like this, hopefully someone else has a good
    solution....

    kemp
     
    kemp, Aug 20, 2004
    #4
  5. I'm having a little trouble imagining why:
    1) it would matter how a leader reacts with hatch (I can't picture using a
    leader as a hatch boundary, but maybe there's some other hatch-related
    issue); or
    2) a true arc for a leader is any better than a spline.

    Spline-format leaders work great. It doesn't seem worth the enormous
    trouble you would have to go through to get an arrowhead and an arc to react
    appropriately to each other and to a piece of Mtext, and do what you want a
    leader to do.

    Kent Cooper, AIA
     
    Kent Cooper, AIA, Aug 20, 2004
    #5
  6. C Witt

    C Witt Guest

    no you wouldn't use the leader as a hatch boundary, but we have found that
    even having a spline IN a hatch boundary can cause problems
    as to arc vs spline. arc's look 100x better than splines do.
     
    C Witt, Aug 20, 2004
    #6
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.