TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: antistar on October 23, 2012, 10:05:56 AM

Title: Routine to extract TAG values
Post by: antistar on October 23, 2012, 10:05:56 AM
Hi masters,

I need to help to extract TAG values.
I have a lot of inserted blocks in drawing with name "BMODEL".
This block have 7 tags: TA, TB, TC, TD, TE, TF, TG.
The routine must:
- Compare TA values;
- If these values are equals, extract lists of TC values on Textscreen.

For example:

TA = metal
TC = 100, 175, 200, 215...
---------------------------------------
TA = wood
TC= 115, 125, 250, 400...
---------------------------------------
TA = glass
TC= 110, 135, 210, 350...

Thanks in advance.
Title: Re: Routine to extract TAG values
Post by: Lee Mac on October 23, 2012, 11:10:24 AM
Consider using my Nested Assoc++ (http://lee-mac.com/assocplusplus.html) function; for your example, you would pass a list of TA & TC values as the 'key' argument.
Title: Re: Routine to extract TAG values
Post by: Matt__W on October 23, 2012, 12:26:41 PM
What about DATAEXTRACTION (http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f48755f05f5210d9d6cf355-7fe4.htm,topicNumber=d0e161691)??
Title: Re: Routine to extract TAG values
Post by: antistar on October 23, 2012, 02:20:20 PM
Consider using my Nested Assoc++ (http://lee-mac.com/assocplusplus.html) function; for your example, you would pass a list of TA & TC values as the 'key' argument.

Hi Lee,
Thanks for your attention.
I will study your routines.

Best regards.
Title: Re: Routine to extract TAG values
Post by: antistar on October 23, 2012, 02:28:14 PM
What about DATAEXTRACTION (http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f48755f05f5210d9d6cf355-7fe4.htm,topicNumber=d0e161691)??

Hi Matt W,
DATAEXTRACTION is a good tip for what I want to do.
Do you know how to upload a file via LISP?