Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MSTG007 on July 16, 2015, 02:34:57 PM
Title: Update a Attributed Block by selecting entities for Count
Post by: MSTG007 on July 16, 2015, 02:34:57 PM
Wondering if there was someway to select objects (lines or circles or whatever) and it adds us the count of those objects then you can select an attributed block to update the count too. Any ideas like that?
Title: Re: Update a Attributed Block by selecting entities for Count
Post by: roy_043 on July 16, 2015, 03:57:29 PM
Title: Re: Update a Attributed Block by selecting entities for Count
Post by: MSTG007 on July 28, 2015, 07:20:59 AM
Roy, I forgot to thank you again for your help on this guy. I have another dumb question to ask. Is it possible to select objects thru an xref? If circles are on another drawing that is xref'd into the current one, can the lisp still select those objects for a count. Currently it works great when everything is in a current drawing! Again thanks!
Title: Re: Update a Attributed Block by selecting entities for Count
Post by: roy_043 on July 29, 2015, 07:12:47 AM
You cannot create a selection set 'through an xref'. You can use (nentsel) for single picks. Or count all circles in an xref. See code below for an example of the latter.