Results 1 to 4 of 4

Thread: exploded mleaders with new mleader and attribute

  1. #1
    Member
    Join Date
    2012-06
    Posts
    3
    Login to Give a bone
    0

    Default exploded mleaders with new mleader and attribute

    I have written this small lips routine to replace some existing exploded circle mleaders with new proper mleaders. It works fine but what I would like to do is pick the text out of old exploded circle mleader and have inserted into the new one. If you run the attached lisp on the attached CAD file you will see what I mean. Instructions below. Can anybody help me with the?

    INSTRUCTIONS:
    So if you pick all the pieces of the old mleader including circle, text, line & solid for deletion. Then pick the new point for the arrowhead and then the center of the new circle from the points on the old one because they haven’t been deleted yet so I could keep the new ones in the same location, it will be replace… but your will be asked for the attribute value. I don’t want it to ask for the attribute as I want to pick it from the old one.

    Code:
    (defun c:c2 (/ lead)
    
    (princ "Pick objects to delete.")
    (setvar "clayer" "t25")
    (setvar "cmleaderstyle" "AA IMP CIRC")
    (setvar 'osmode 759)
    (setq lead (ssget))
    
    
    (setq pt1 (getpoint "\nSpecify leader arrowhead location: "))
    (setq pt2 (getpoint "\nSpecify center of bubble location: "))
    
    
    (command "erase" lead "")
    
    
    (setvar 'osmode 0)
    (command "mleader" pt1 pt2 "")
    (setvar 'osmode 759)
      (princ)
    )

  2. #2
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: exploded mleaders with new mleader and attribute

    There is no dwg attached.
    Please upload

  3. #3
    Member
    Join Date
    2012-06
    Posts
    3
    Login to Give a bone
    0

    Default Re: exploded mleaders with new mleader and attribute

    Sorry, here it is.

    thx
    Attached Files Attached Files

  4. #4
    I could stop if I wanted to
    Join Date
    2005-06
    Location
    CORDOBA-ARGENTINA
    Posts
    275
    Login to Give a bone
    0

    Default Re: exploded mleaders with new mleader and attribute

    Hi Irdaboy , pelase clear me , would it be always the circle with its number(as text) , or it could be an hexagon ? .

    would it be , a simple connection line , or wahtsever?

    For the first case , you can do a ssget for all lines at layer L25 , the get all others enty connected to it , as leader block [solid], circle or hexagon , its text , and build the mleader .

Similar Threads

  1. Replies: 3
    Last Post: 2015-06-26, 04:55 PM
  2. 2014: mleader--> attribute editor
    By ronhecht.ii532208 in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2014-02-01, 11:06 PM
  3. change exploded block attribute tags to text?
    By johnccole in forum AutoLISP
    Replies: 20
    Last Post: 2011-05-11, 06:32 PM
  4. Attribute to Mleader?
    By Mater in forum AutoLISP
    Replies: 7
    Last Post: 2010-10-22, 01:27 PM
  5. MLeaders
    By marble in forum AutoCAD General
    Replies: 1
    Last Post: 2007-08-01, 12:16 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
  •