(setq i -1)
(repeat (sslength wz)
(setq ent (ssname wz (setq i (1+ i))))
(setq num 7)
(setq ch "HZ")
(ch_dxf ent num ch)
(setq num 41)
(setq ch 0.7)
(ch_dxf ent num ch)
(setq num 51)
(setq ch 0.0)
(ch_dxf ent num ch)
)
(princ)
)
(defun ch_dxf (en num ch / old_num new_num ent)
(if (setq ent (entget en)
new_num (cons num ch)
old_num (assoc num ent)
)
(entmod (subst new_num old_num ent))
(entmod (reverse (cons new_num (reverse ent))))
)
)