Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA / LISP routine info for FIND command..

Status
Not open for further replies.

basepointdesignz

Programmer
Jul 23, 2002
566
GB
Hi,

I would like to write a small program that searches and counts numbers of a particular block attribute values or text values..

Basically, for quantifiying materials on a project, I will sometimes create blocks of say a certain galv steel bracket and add an invisible attribute with the schedule reference as the value, and then using the FIND command's 'Replace All' function, count the number of values that the Replace finds..

Now this is ok but a bit long-winded, so I was wondering if there is a system variable that AutoCAD uses to store the count value of the FIND command - something I can then read / write within VBA or LISP..

Or if anyone knows of another way I can achieve this or even a freeware program already created I can use..



Cheers,
Paul @ basepoint designz LTD..

basepointdesignzLTD
 
If you're writing a routine, why not have the routine "find" all instances and count them. It would not be too difficult to count all instances of a particular attribute value, and could be limited to a particular block name if desired.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top