Jump to content

Lisp for change text height in model space only


gmmdinesh

Recommended Posts

Hi..Everyone.

I have a lisp file to change a text height.its working well but its changes text height in entire drawing ( including layout ( paper space )).

I want to change the text height in model space only. In this lisp, and what changes must be made.

 

(defun c:chgtxt  (/ ht ss)
 (vl-load-com)

 (if (and (setq ht (getdist "\nSpecify New Text Height: "))
          (setq ss (ssget "_x" '((0 . "*TEXT")))))
     (foreach x (mapcar 'entget
                  (vl-remove-if 'listp
                    (mapcar 'cadr (ssnamex ss))))
       (entmod (subst (cons 40 ht) (assoc 40 x) x))))
 (princ))

 

Thanks in advance

Edited by SLW210
Code Tags
Link to comment
Share on other sites

Hi SLW210,

I'm really very sorry,I'm newbie here.This mistake will not happen again.

Thanks for your Information.

 

 

Regards

Dinesh P

Link to comment
Share on other sites

  • 1 year later...
have a close look:

(setq ss (ssget "_X" (list '(0 . "*TEXT") (cons 410 (getvar 'CTAB)))))

 

 

Hi,

 

can you help to code for Text height & Width

 

means

i need all text height to be 2.5 and all width factor 0.8

 

plase help me

 

i don't know the coding system.

 

Thanks.:)

Link to comment
Share on other sites

Hi,

 

can you help to code for Text height & Width

 

means

i need all text height to be 2.5 and all width factor 0.8

 

plase help me

 

i don't know the coding system.

 

Thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...