AutoCAD Architecture General Discussion

AutoCAD Architecture General Discussion

Reply
Distinguished Contributor
452 Posts
0 Kudos
Registered: ‎07-18-2007
Post 1 of 4

MTEXT scaling

98 Views, 3 Replies
07-23-2008 05:52 AM
Is there a way to make "inserted" Mtext come in on the scale of the current space, like with dimensions?
*Doug Broad
Post 2 of 4

Re: MTEXT scaling

07-26-2008 06:02 AM in reply to: Lhudson


If mtext is inside a block, then no, not without heavy customization.

If the block is exploded, per paste, then the following could be
substituted

for the paste command to accomplish it.

 

[code]

;;Serves as a substitute for paste command where
;;the intent is to have
annotative objects have
;;the current scale added.  Objectscale
prints
;;a message indicating how many objects were changed
;;D. C.
Broad  2008
(defun c:annopaste ( / e ss)
  ;;Get the last object
before paste, if exists
  (if (setq e (entlast))
   
(while (entnext e)
      (setq e (entnext
e)))
    )
  ;;perform paste command
 
(command "_.pasteclip" pause)
  ;;make changes only to pasted
objects
  (setq e (if e (entnext e) (entnext)))
  (setq ss
(ssadd))
  (while e
    (setq ss (ssadd e ss) e
(entnext e)))
  (command "_.-objectscale" ss "" "Add" "" "")
 
;;exit quietly
   (princ))

 

[/code]


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
there a way to make "inserted" Mtext come in on the scale of the current
space, like with dimensions?
Distinguished Contributor
452 Posts
0 Kudos
Registered: ‎07-18-2007
Post 3 of 4

Re: MTEXT scaling

07-26-2008 11:59 AM in reply to: Lhudson
I am not sure if we are talking about the same, thing I am not using blocks. What I would like is for inserting Mtext to be like inserting dimensions. whenever you insert a dim, it comes in at the correct scale.
*Doug Broad
Post 4 of 4

Re: MTEXT scaling

07-26-2008 01:43 PM in reply to: Lhudson
Neither dimensions nor mtext are "inserted" so that confused me.
They are both "added" with their respective commands. Only
blocks are "inserted" as far as I know.

In order for mtext to be annotative, the current text style must be
annotative and the current text size must be set in paper units.
Current implementations of toolbars, tool palettes, and menus
don't do a good job setting up these conditions automatically.
Templates do.

Before adding annotative mtext, use the style command to set
annotative style current and use textsize to set a paper text
height you want. Then start the mtext command and proceed.
The resulting mtext will be annotative and the correct size.



wrote in message news:5991365@discussion.autodesk.com...
I am not sure if we are talking about the same, thing I am not using blocks.
What I would like is for inserting Mtext to be like inserting dimensions.
whenever you insert a dim, it comes in at the correct scale.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!