I am looking for a simple way to make sure my TAG1 attribute is "FIXED". I am looking at the properties & methods of the attribute, but i do not know what to change and what to change it to, to force it to "fixed"
Solved! Go to Solution.
Solved by gcsjlewis. Go to Solution.
@gcsjlewis wrote:
I am looking for a simple way to make sure my TAG1 attribute is "FIXED". I am looking at the properties & methods of the attribute, but i do not know what to change and what to change it to, to force it to "fixed"
As a "demo"
(if (setq ss (ssget "_+.:E:S:L" '((0 . "INSERT") (66 . 1)))) (progn (setq ent (ssname ss 0)) (while (and (setq ent (entnext ent)) (setq entdata (entget ent)) (= (cdr (assoc 0 entdata)) "ATTRIB") ) (if (= (cdr (assoc 2 entdata)) "TAG1") (entmod (subst (cons 70 2) (assoc 70 entdata) entdata)) ) ) ) )
HTH
Henrique
@gcsjlewis wrote:
Sorry that's not working. It changes the dxf code but not marking the attribute as fixed.
...
I do not know if that's what constant is supposed to do.
When we change the attribute to constant, the ability to enter a new tag value, will be disabled and the attribute existing value becomes fixed...
Henrique