Author Topic: Multileader Z Value  (Read 6661 times)

0 Members and 1 Guest are viewing this topic.

Dave M

  • Newt
  • Posts: 196
Multileader Z Value
« on: January 17, 2013, 11:45:35 AM »
Does anyone have a quick way to set/change the elevations of multileaders?
Cheers
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Multileader Z Value
« Reply #1 on: January 17, 2013, 12:03:28 PM »
Try something like this:

Code: [Select]
(defun c:foo (/ e elev ss)
  (if
    (and (setq elev (getdist "\nEnter elevation: ")) (setq ss (ssget ":L" '((0 . "MULTILEADER")))))
     (while (setq e (ssname ss 0))
       (entmod (mapcar '(lambda (x)
  (if (member (car x) '(10 12 110))
    (list (car x) (cadr x) (caddr x) elev)
    x
  )
)
       (entget e '("*"))
       )
       )
       (ssdel e ss)
     )
  )
  (princ)
)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Dave M

  • Newt
  • Posts: 196
Re: Multileader Z Value
« Reply #2 on: January 17, 2013, 12:43:57 PM »
That worked perfectly, thanks!  BTW why is the function named foo?
Cheers
Dave
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Multileader Z Value
« Reply #3 on: January 17, 2013, 12:54:36 PM »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Dave M

  • Newt
  • Posts: 196
Re: Multileader Z Value
« Reply #4 on: January 17, 2013, 01:06:13 PM »
Got it, thanks!
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

lamarn

  • Swamp Rat
  • Posts: 636
Re: Multileader Z Value
« Reply #5 on: January 23, 2013, 05:04:15 AM »
How does this work? I do see that elevation is not a property listed.. (?)
Design is something you should do with both hands. My 2d hand , my 3d hand ..

ronjonp

  • Needs a day job
  • Posts: 7531
Re: Multileader Z Value
« Reply #6 on: January 23, 2013, 11:06:01 AM »
All I did was dump the entity data then looked for point lists within and modified them with ENTMOD  8-)


Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC