LISP to automatically generate results with maximum and minimum value for each attribute from multiple block references

LISP to automatically generate results with maximum and minimum value for each attribute from multiple block references

afloareirazvan
Enthusiast Enthusiast
888 Views
6 Replies
Message 1 of 7

LISP to automatically generate results with maximum and minimum value for each attribute from multiple block references

afloareirazvan
Enthusiast
Enthusiast

Hello.

These are the names of my attributes and I want to generate results with maximum and minimum value for each attribute from a bunch of block references

afloareirazvan_0-1665682436726.png

 

Thank you for your time.

 

0 Likes
889 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

Questions:

1. Do you have in your drawing one Block that has all these Attributes but inserted multiple times or do you have a number of different named Blocks that contain some of these Attributes?

2. How are you expecting the results to return back to you after the code runs? For example: as a list that contains the name of the Attribute followed by maximum & then minimum values ie: ((I-ID (4 1)) (I-V (25 10))...) or dotted pair ie:

((I-ID . (4 1)) (I-V . (25 10))...) or ...?


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

vladimir_michl
Advisor
Advisor

There is the AutoClass tool which can classify DWG objects by some property (incl. numeric value of a selected attribute). So the max/min is then easy to see. But it may be too general for your task. See https://www.cadstudio.cz/en/apps/autoclass/

 

Vladimir Michl, www.arkance-systems.cz - www.cadforum.cz

 

0 Likes
Message 4 of 7

john.uhden
Mentor
Mentor

@afloareirazvan 

Would this be for all the insertions in a drawing or for just a selection of inserts?

Do all the attribute values contain strictly numeric text?

Would any of the values be in architectural format?

Would an empty attribute have a value of 0?

Could you please provide a sample drawing and the list of attribute tags as text?

John F. Uhden

0 Likes
Message 5 of 7

3wood
Advisor
Advisor

You can ATTOUT the attribute values and then use MS Excel to sort it. 

0 Likes
Message 6 of 7

john.uhden
Mentor
Mentor

@3wood 

I've never used ATTOUT.  Can you include the tags?

John F. Uhden

0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor
0 Likes