Message 1 of 2
If value in attribute is true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
Im kind of stuck here.
I want to look if a attribute SKALA exists in the drawing
and check if it contains the value 1:1.
If this statements is true, i wamt so sett my string mo to "funk"
To make it more secure i would like to see if its inside a block and if the block exists in the drawing.
Could someone give me a hand withe the final steps and maybe also explain why its not working here.
(setq ss (entnext)) (while ss (setq ed (entget ss)) (if (= "ATTRIB" (cdr (assoc 0 ed))) (if (= "SKALA" (cdr (assoc 2 ed))) (if (= "1:1" (assoc 1 ed)) (setq mo "funk") ) ) ) (setq ss (entnext ss)) ) (setq ed nil) (princ)
Thanks for your help. And sorry for my bad english