Author Topic: Import/Reset Multileader Styles  (Read 187 times)

0 Members and 1 Guest are viewing this topic.

Dave M

  • Newt
  • Posts: 145
Import/Reset Multileader Styles
« on: May 17, 2017, 12:57:18 pm »
Hi All,


I have a set of plans with about 100 sheets, and I would like to update a multileader style that resides in each file.  Does anyone know of a way to import a multileader style from another file that will override the existing style?  The only workaround I can think of is to rename the style I want to change, import the style I want to use it into the sheet, and then swap the style of the multileaders and purge the style I no longer need.


Anyone know of a better way to do this?


Thanks
Civil 3D 2016 - Microstation SS4 - Windows 7 - Dropbox

ronjonp

  • Needs a day job
  • Posts: 6312
Re: Import/Reset Multileader Styles
« Reply #1 on: May 17, 2017, 01:18:26 pm »
You could use something like this to get the mleaderstyle . .then make the changes programmatically.

Code - Auto/Visual Lisp: [Select]
  1. (defun _mleaderstyle (name / e)
  2.  (and (setq e (dictsearch (namedobjdict) "ACAD_MLEADERSTYLE"))
  3.       (setq e (dictsearch (cdr (assoc -1 e)) name))
  4.       (setq e (vlax-ename->vla-object (cdr (assoc -1 e))))
  5.  )
  6.  e
  7. )
  8. ;  (_mleaderstyle "Standard")
« Last Edit: May 17, 2017, 01:33:53 pm by ronjonp »

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC

Dave M

  • Newt
  • Posts: 145
Re: Import/Reset Multileader Styles
« Reply #2 on: May 17, 2017, 03:41:57 pm »
I appreciate your code snippet, but I have no coding ability whatsoever.
Civil 3D 2016 - Microstation SS4 - Windows 7 - Dropbox

ronjonp

  • Needs a day job
  • Posts: 6312
Re: Import/Reset Multileader Styles
« Reply #3 on: May 18, 2017, 09:38:43 am »
If you want some help, post a drawing of the new mleader style you're trying use to update your drawings.

Windows 10 x64 - AutoCAD /C3D 2018

Custom Build PC