View Full Version : Global Property
Louis G
2010-09-29, 11:52 AM
My scenario is when I do global selection of an entire project, change the multi leader text globally for instance, and when I go back to any individual multi leader with-in the project, I find that multi leader has not been changed.
Does ACAD 2010 have a restricted amount of entities to be selected or is it a setting I don't know about?
Thanks for the input.
irneb
2010-09-30, 01:42 PM
Sorry, I don't understand what you mean. How are you able to set multi-leader contents globally? Through some Lisp or maybe the Find command with a replacement string? Or are you referring to a property in SSM with fields in the ML's pointing to this property?
If you select multiple ML's (or MTexts as well) you can still only change their values one at a time - even when using the Properties Palette. Only with DText, Dims and Attributes can you modify multiples at once. And that is how it works on my Vanilla 2008 as well as 2011 - so I guess it's the same as on your 2010.
Louis G
2010-10-07, 07:08 PM
Thanks for your reply.
I swear, one day I'll get this! :|
irneb
2010-10-07, 07:55 PM
You can of course change multiple MLeader / MText values through lisp. Here's a quick hash of something:
(vl-load-com)
(defun c:MChgTxt (/ ss eo txt)
(print "Select the multileaders & mtexts: ")
(if (and (setq ss (ssget '((0 . "MTEXT,MULTILEADER"))))
(setq txt (getstring t "\nEnter the text: "))
(setq ss (vla-get-ActiveSelectionSet (vla-get-ActiveDocument (vlax-get-acad-object))))
)
(vlax-for eo ss
(vla-put-TextString eo txt)
)
)
(princ)
)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.