Hi gang,
I'm trying to write a routine that allows me to pick on an attribute (field) in a block, and create a selection set of all other blocks of that name that have the same value in that field. Make sense?
In other words I want to click on the "Species" attribute of a block called "Tree1" and I want AutoCAD to select all other "Tree1" blocks that have a similar value for "Species"
The FIND command does not seem to work because (I think) the value of the "species" attribute is a field driven by a lookup table. I believe this problem is compounded by the fact that these are dynamic blocks and once a parameter is changed, they take on a unique name...
Thanks in advance for any help.
-JP
(vla-get-Effectivename)
(princ s)
(princ e)
(princ l)
(princ sd)
(princ ss
)Don't apologize! ;-) It works great and it's going to help a great deal!
Thanks so much!!!
-JP
I have to tell you Tharwat,
Users at this office are writing epic songs about your LISP abilities and singing them around campfires!!! ;-)
Super useful tool. Thanks again!
Harvesting attributes & using these useful functions (http://www.theswamp.org/index.php?topic=8163.msg104627#msg104627), one could make a fairly versatile filtering routine :)
Thanks! :)Harvesting attributes & using these useful functions (http://www.theswamp.org/index.php?topic=8163.msg104627#msg104627), one could make a fairly versatile filtering routine :)
FWIW, below are some optimisations for those functions spawned from a PM discussion with MPa couple of4(!) years ago (which subsequently lead to this thread (http://www.theswamp.org/index.php?topic=40165) demonstrating a generic form of the same technique).Code - Auto/Visual Lisp: [Select]
P.S. Nice work Ron :)