AutoCAD Architecture General

Reply
Distinguished Contributor
Lhudson
Posts: 452
Registered: ‎07-18-2007
Message 1 of 4 (91 Views)

MTEXT scaling

91 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
Message 2 of 4 (91 Views)

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
Lhudson
Posts: 452
Registered: ‎07-18-2007
Message 3 of 4 (91 Views)

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
Message 4 of 4 (91 Views)

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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community