Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the following code that I use to quickly modify a block attribute. Sometime it doesn't work and I get the following error
Type the New Text: 4 ; error: ActiveX Server returned the error: unknown name: TextString
**************************************
(defun c:NTag (/ ent obj new)
(vl-load-com)
(if (setq ent (car (nentsel "\nSelect Att Tag to Edit:")))
(progn (setq obj (vlax-ename->vla-object ent))
(setq new (getstring "\nType the New Text: "))
(vla-put-textstring obj new)
(C:NTag)
);progn
(princ)
);if
)
****************************************************
Thank you
RR
Solved! Go to Solution.