Counter Block Advanced

Counter Block Advanced

pierre_costeS8GW8
Enthusiast Enthusiast
421 Views
4 Replies
Message 1 of 5

Counter Block Advanced

pierre_costeS8GW8
Enthusiast
Enthusiast

Hello everybody,

 

First, thanks to some help, i do have a routine that create extract blocks attribute values into a table and sum some data. I did this code by understanding and assembling pieces of code ... but i am facing an issue.

 

You know that if you have a table of materials to use , it is better to display in a column "QTY" how much of this same block you have instead of displaying it each time in your table. You can see what i mean in the pictures.

 

The idea would to create a loop that increase a counter every time another same block is selected and set to 1 for unique block. The sum of this counter would appear in the column "QTY" in the same row as the same blocks. 

 

If someone has any idea or information that would be help me out.

 

Thank you very much 

 

 

For those who will ready the Lisp, it has been customized to display attribute values from different blocks that all have the same sequence of attribute names with different attribute values.

 

According to the picture, the aim would be to display '3' in first row of quantity, also '3' in the second row of quantity but would adapt depending on how much unique/same blocks i select.

0 Likes
422 Views
4 Replies
Replies (4)
Message 2 of 5

paullimapa
Mentor
Mentor

Any reason you don’t want to use Dataextraction command to generate the table which also gives option for quantity count and automatically updates?


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 5

hgasty1001
Advisor
Advisor

Hi,

 

Check this from the Lee-Mac site: Block Counter 

 

-hgasty

0 Likes
Message 4 of 5

pierre_costeS8GW8
Enthusiast
Enthusiast

Yes, i would like it to be a lisp to be as simple as simple to use for my colleague that are a way far from the autocad environment.

0 Likes
Message 5 of 5

pierre_costeS8GW8
Enthusiast
Enthusiast

Hi, i will try to do my best but hard to adapt it to my lisp ... thanks

0 Likes