Jump to content

Autocad 2012 Multileader copy and editing problems


kenth

Recommended Posts

I have searched everywhere for this problem but so far no one's every mentioned it.

 

Here's my problem:

I'm using a modified version of Edwin's Prakoso "Automatic Coordinate Labeling" Lisp routine. I'm using multileaders instead of leaders.

 

I have set up the multileader style for it to appear vertically.

 

The problem is when I copy those multileaders from one drawing file to another, the lines of the multileader "extends" itself beyond the text, like so:

 

3XVp8bWl.jpg

 

LcACwCgl.jpg

 

 

Another problem arises when I try to edit the multileader text, or when I changed something in the Multileader style dialog box. The lines "extend" themselves before the text like so. This extension is indefinite, it go on and on.

 

BEFORE:

G2Oi7Mtl.jpg

 

AFTER:

kyyYoCvl.jpg

Link to comment
Share on other sites

Here's a sample and the lisp I'm using:

; Automatic coordinate labeling
; Edwin Prakoso
; http://cad-notes.com
;
; Limitation
; ----------
; Will use current leader style and current units setting

(defun c:ll (/  p y x ptcoord textloc)
 (while
   (setq p (getpoint "\nPick Point: "))
   (setq textloc (getpoint "\nPick Label Location: "))
   (setq x (rtos (car p)))
   (setq y (rtos (cadr p)))
   (setq ptcoord (strcat "{\\H0.70x;\\S" y "/" x ";}\ "))
   (command "_MLEADER" p textloc ptcoord "")
 )
)

Tuns

Could something in the lisp routine effect it? It may be something we can't fix because it might be a software issue.

I'm not so good with lisp language, but AFAIK even multileaders created manually are also affected.

 

==

 

10 mins after posting the thread, I realized I could just use QLEADER and MTEXT in my lisp instead of MLEADER for the same goal. And without the "line extending" copying/editing bug.

sample.dwg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...