+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14
  1. #11
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    Registered forum members do not see this ad.

    I was able to adjust the leader in the style, but will this code locate the style on my computer or how does that work?

  2. #12
    Senior Member
    Computer Details
    ronjonp's Computer Details
    Operating System:
    Windows 10
    Using
    AutoCAD 2018
    Join Date
    Apr 2009
    Location
    Colorado
    Posts
    457

    Default

    Quote Originally Posted by ryankevin15 View Post
    I was able to adjust the leader in the style, but will this code locate the style on my computer or how does that work?
    It just changes the current mleader style ( which might actually be bad practice ) ... I would check if the style exists and set it current, else import ( or create with code ) and set current.

  3. #13
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    Here is my updated code. Can anyone add some code so that it will import the MLeaderStyle before making the MLeader? Our style is called "Ascent"

    Code:
    (DEFUN C:mm ()
      (setvar "cmdecho" 0)
      (if (not (tblsearch "layer" "E-Anno-Note"))
        (command "-layer" "n" "E-Anno-Note" "c" "2" "E-Anno-Note" ""))
      (command "-layer" "m" "E-Anno-Note" "")
      (command "-layer" "c" "2" "E-Anno-Note" "")
      (command "-layer" "ps" "style_1" "E-Anno-Note" "")
      (COMMAND "mleader")
      (princ)
      )

  4. #14
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    Registered forum members do not see this ad.

    Actually, it looks like we need to create this MLeader style every time and set it to current if it doesn't exist...

Similar Threads

  1. Set MLeader to Existing MLeader Style via LISP
    By parkerdepriest in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 22nd Sep 2017, 09:13 am
  2. Select MLeader by Mleader style
    By pmayer in forum AutoLISP, Visual LISP & DCL
    Replies: 6
    Last Post: 3rd Apr 2017, 06:56 pm
  3. Combining two LISP Routines - Leader to Mleader and Mleader Rotate
    By Cylis0509 in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 13th Jan 2016, 09:12 pm
  4. Mleader ;;; vla-put-???
    By Lee Roy in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 24th Aug 2011, 05:56 pm
  5. Mleader
    By au-s in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 20th Apr 2009, 12:39 pm

Tags for this Thread

Bookmarks

Posting Permissions

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