select multileader by style
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to write a routine that will select all the multileaders in a drawing by a stylename and move them to a new layer.
I am having problems getting the program to select a multileader by a specific style. It reports that there are no multileader in the drawing with the style name of "AEC_KN_Keynotes".
Here is a screen shoot of the multileader:
(defun c:sml ( / styleEnt ss )
(setq styleEnt (tblobjname "mleaderstyle" "AEC_AC_Keynotes"))
(if styleEnt
(progn
(setq ss (ssget "X" (list '(0 . "MULTILEADER") (cons 340 styleEnt) '(67 . 1))))
(if ss
(progn
(sssetfirst nil ss)
(princ (strcat "\nSuccess: Selected " (itoa (sslength ss)) " Multileaders."))
)
(princ "\nNotice: No Multileaders found with style 'AEC_AC_Keynotes' in Paper Space.")
)
)
(princ "\nError: The MLeader style 'AEC_AC_Keynotes' does not exist in this drawing.")
)
(princ)
)
Attached is my drawing & lisp file. Any help would be appreciated.
Paul