Message 1 of 46
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The following Lisp route will update text by style. Can this be done in C sharp?
I am looking for a c sharp routine that would have an select all so I can make changes to all text in the drawing.
;; TextHeightUpdate.lsp [command name: THU] ;; To Update the Height of Text and Mtext in Styles with defined heights, ;; when height has been changed in Style definition. Checks Style of all ;; selected Text/Mtext, and it has a defined height, imposes that on object. (defun C:THU (/ ss n obj ht) (prompt "\nTo Update the Height of fixed-height Text/Mtext,") (if (setq ss (ssget '((0 . "TEXT,MTEXT")))) (repeat (setq n (sslength ss)) (setq obj (vlax-ename->vla-object (ssname ss (setq n (1- n))))) (if (> (setq ht (cdr (assoc 40 (tblsearch "style" (vla-get-StyleName obj))))) 0) (vla-put-Height obj ht); then ); if ); repeat ); if (princ) ); defun (vl-load-com) (prompt "\nType THU for Text Height Update.")
Thank you
Solved! Go to Solution.