Jump to content

text sizes in dimension style...help


leonucadomi

Recommended Posts

hello ALL:

 

I would like to know if there is any routine for change text size massively 

in the different existing dimension styles.

 

any comments about it?

 

thanks

image.png.6ab8fe27374cff2f97af3da3bee9ea96.pngimage.png.08066f49f908ee4a24c63ed1191e6136.png

Link to comment
Share on other sites

Your only wanting to change the current Dimstyle?

 

;;----------------------------------------------------------------------------;;
;; Dimstyles Text Height Change
(defun C:DimHeight (/ dim h name)
  (setq dim (vla-get-activedimstyle (vla-get-activedocument (vlax-get-acad-object))))
  (setq style (entget (vlax-vla-object->ename dim)))
  (if (setq h (cons 140 (getreal (strcat "\nDimension Text Size: "))))
    (progn
      (entmod (subst h (assoc 140 style) style))
      (setvar 'dimtxt (cdr h))
    )
  )
  (princ)
)

 

  • Thanks 1
Link to comment
Share on other sites

If you want all the dimension styles you might need to add this function somewhere:

 

(defun tablesearch ( s / d r) ;;List Dimstyles
  (while (setq d (tblnext s (null d)))
    (setq r (cons (cdr (assoc 2 d)) r))
  )
)

 

 

and to loop through the list something like this:

 

(foreach x (tableSearch "dimstyle")

--- do stuff

(princ "\n")
(princ x) ; for example

) ; end foreach

 

 

 

That isn't what I was going to say though, I have found that adjusting the text sizes a lot can make the spacing and arrows out or proportion, the LISP I use does this with dimstyles rather than MHUPPs entmod method - you might want to search for that as well. For example a text size of 250 dwarfs an arrow size of 2.5

 

MHUPP is pretty good with this stuff and might modify his for example to put arrow size to the same as text size to show how to build up his code to add more stuff (I don't know the code for 'arrow size' )

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

thanks for your help.

am using many files and they have text size 3

so i must change to 3.5

that's why ask if with some routine you can modify the different dimension styles in the different drawings

 

Link to comment
Share on other sites

To do many drawings all at once you might also consider a script process, like Script Pro or Lee Macs script maker, get the lisp working as you want and then do the script on all the drawings

  • Thanks 1
Link to comment
Share on other sites

You should consider switching to annotative dimensions so they'd display the same at different scales in MS and the same drawn in PS.

Rather than end up with dimensions with varying gap & arrow sizes you could add a dimension style exactly how you want and set that style to all your dimensions.

  • Agree 1
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...