Author Topic: Attribute Check  (Read 1044 times)

0 Members and 1 Guest are viewing this topic.

Ambo

  • Mosquito
  • Posts: 20
Attribute Check
« 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.

CincyJeff

  • Newt
  • Posts: 89
Re: Attribute Check
« Reply #1 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")

Ambo

  • Mosquito
  • Posts: 20
Re: Attribute Check
« Reply #2 on: October 13, 2020, 07:12:07 PM »
Thanks CincyJeff for the idea.