Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Attribute Check
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Attribute Check (Read 1047 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.
Logged
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")
Logged
Ambo
Mosquito
Posts: 20
Re: Attribute Check
«
Reply #2 on:
October 13, 2020, 07:12:07 PM »
Thanks CincyJeff for the idea.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Attribute Check