Lisp to create table from cumulative value of attribute of selected objects

Lisp to create table from cumulative value of attribute of selected objects

cool.stuff
Collaborator Collaborator
1,541 Views
8 Replies
Message 1 of 9

Lisp to create table from cumulative value of attribute of selected objects

cool.stuff
Collaborator
Collaborator

Hi!!!

 

 

Is there a lisp to create a table from selected objects and return the cumulative values of the defined attribute (e.g. visibility) of them?

 

For instance, I run the lisp and it asks to select the objects (blocks) and then I select 50 different lines with different visibility attributes between them (some have the same visibility attribute, others dont), it sums all lines with the same visibility attribute and generates a table from it.

 

I couldn't find anything in the forum, but it may exist. 🙂

 

Many thanks in advance!! 🙂

0 Likes
1,542 Views
8 Replies
Replies (8)
Message 2 of 9

pbejse
Mentor
Mentor

@cool.stuff wrote:

Hi!!!

 

Is there a lisp to create a table from selected objects and return the cumulative values of the defined attribute (e.g. visibility) of them?


Theres tons of program in this forum that creates a table for selected objects. BUT it also depends on source and how its structured. 

 

Important thing is to give more information, dont make us guess how the table would look like, what are selected objects.

 

Sample drawing would be the best info you can provide to enable us to help you.

 

 

 

 

0 Likes
Message 3 of 9

Moshe-A
Mentor
Mentor

@cool.stuff  hi,

 

it sums all lines with the same visibility attribute

 

what do you mean by that? 

 

are talking about Cumulative distance of lines? Cumulative attribute values?

 

post a sample dwg

 

moshe

 

0 Likes
Message 4 of 9

cool.stuff
Collaborator
Collaborator

Hi!!

Thanks for the answer!!

 

I've attached and example.

There are two blocks with different visibility states.


ALso, I've attached an image with an example of required table:
- In the first column the visibility name;
- In the second colmun the number of blocks/objects with the same visibility;
- In the third column, the cumulative length of block line;

 

 

Many thanks!!!

0 Likes
Message 5 of 9

cool.stuff
Collaborator
Collaborator

Hi!!

Thanks for the answer!!

 

I've attached and example.

There are two blocks with different visibility states.


ALso, I've attached an image with an example of required table:
- In the first column the visibility name;
- In the second colmun the number of blocks/objects with the same visibility;
- In the third column, the cumulative length of block line;

 

Many thanks!!!

0 Likes
Message 6 of 9

Moshe-A
Mentor
Mentor

@cool.stuff ,

 

1. there is only 1 block that contains 2 parts (left and right) but it is still 1 block.

2. what does this block\figures represent in real world?

 

moshe

 

0 Likes
Message 7 of 9

cool.stuff
Collaborator
Collaborator

Hi!

 

It represents some architectural elements, for which I need to measure the perimeter.

 

Many thanks for your help

0 Likes
Message 8 of 9

pbejse
Mentor
Mentor

@cool.stuff wrote:

- In the third column, the cumulative length of block line;


 

Where is the source for the length?  Is it the value of 'user1" or  'user2" from "flip chain" block? Distance between two blocks of the same visibility with a connecting "line"?

 

 

 

0 Likes
Message 9 of 9

pbejse
Mentor
Mentor

I'm guessing the questions we threw back  at @cool.stuffis as confusing as the original request, either that the OP ended up with posting the same request on some other forum and got good results.

 

I'm sending out my spider bot to find out.[ seek boy ]

 

webbot.png must find, must find same posts...

 

 

 

0 Likes