
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to change the values of a list of attribute tag's using to 'tagvalues' list.
the below program is to change the value of all attribute tag's to 'Nil'...
Can someone suggest how to rearrange this program to achieve it?
(setq tags (list "DRAWING_#" "V" "PH" "HZ" "SIZE"))
(setq tagvalues (list "A" "B" "C" "D" "E"))
(setq
ss (ssget "_x" (list '(2 . "TITLE_BLOCK_B-1")))
i 0
)
(repeat (sslength ss)
(setq
obj (vlax-EName->vla-Object (ssname ss i))
lstatts (vlax-SafeArray->list (variant-Value (vla-GetAttributes obj)))
)
(foreach atts lstatts (if (member (vla-Get-TagString atts) tags)(vla-put-textstring atts "")))
(setq i (1+ i))
)
Thanks in advance.
Solved! Go to Solution.