TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Ambo on October 13, 2020, 04:31:58 AM

Title: Attribute Check
Post by: Ambo on October 13, 2020, 04:31:58 AM
How do you check if a specific tag value contains a field?  I just wanted to do this check so the code will skip an attribute if a field is present. Thank you.
Title: Re: Attribute Check
Post by: CincyJeff on October 13, 2020, 12:45:24 PM
Get the attribute entity att:e.
(= (cdr (assoc 3 (entget (cdr (assoc 360 (entget att:e)))))) "ACAD_FIELD")
Title: Re: Attribute Check
Post by: Ambo on October 13, 2020, 07:12:07 PM
Thanks CincyJeff for the idea.