PDA

View Full Version : Incert m-text with leaderline as shown on the image.



Engr. Nurul Islam
2013-10-29, 05:54 AM
9383993839
Hi folks,
I have been looking for a lisp to incert m-text with leaderline as shown on the image.
The lisp will take sheet number and starting chracter as input and will give the consicutive text with leader line and sheet number as out put as shown on the image.

Please help me.

Thanks in advance.
NI

Opie
2013-10-29, 03:09 PM
Have you searched the AutoLISP forum for something similar? I am certain there is something around here that is close to what you are attempting to do.

bhull1985403354
2013-10-29, 03:48 PM
Here, this should get you started.
This asks for sheet no and then waits for you to click where you want the leader, then it replicates.
Obviously some modifications would need to occur to finish your program but I think this is a good start, please ask if any questions


(defun C:leaders (/ )
(initget 1)
(setq sheetno (getint "\nEnter sheet number:"))
(command "mleader" pause pause (strcat "a" (itoa sheetno)))
(command "copy" (entlast) "" "d" "0,-5,0")
)