Author Topic: Super Wierd MText Mirroring behaviour  (Read 3176 times)

0 Members and 1 Guest are viewing this topic.

CADDOG

  • Newt
  • Posts: 82
  • wishbonesr
Super Wierd MText Mirroring behaviour
« on: September 27, 2013, 01:37:15 PM »
Please download and mirror the text (turn off ortho), but do not complete the command.  Just move cursor around to see the wierdness.
Anybody know what's up with the text?

Here's something that will show another wierdness, by drawing the bounding box of the object.
Code: [Select]
(setq oldsnap (getvar "OSMODE"))
(setvar "OSMODE" 0)
(vla-getboundingbox (setq txt (vlax-ename->vla-object (car (entsel)))) 'll 'ur)
(setq bbox (mapcar 'vlax-safearray->list (list ll ur)))
(command "rectangle" (nth 0 bbox) (nth 1 bbox))
(setvar "OSMODE" oldsnap)

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Super Wierd MText Mirroring behaviour
« Reply #1 on: September 27, 2013, 02:17:00 PM »
I get odd results when MIRRTEXT is set to 0 ... works fine when it is set to 1.


After looking a little closer, the text is top left justified but the grip is on the top right. If you drag the mtext bounding box back to the right it behaves normally.
« Last Edit: September 27, 2013, 02:23:14 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Super Wierd MText Mirroring behaviour
« Reply #2 on: September 27, 2013, 03:09:41 PM »
I have not opened the file, but it sould like a text paragraph justification abuse

Edit the text and Highlight all > Right Click > Remove all Formatting.

It sounds like what I see from here that users are setting the text paragraph justification internally in the editor and thinking they are setting the text justification.

Worse freaking thing AutoDesk ever did was put that Text Justification in the editor.  I have seen so much abuse.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

CADDOG

  • Newt
  • Posts: 82
  • wishbonesr
Re: Super Wierd MText Mirroring behaviour
« Reply #3 on: September 30, 2013, 12:29:15 PM »
I have not opened the file, but it sould like a text paragraph justification abuse

Edit the text and Highlight all > Right Click > Remove all Formatting.

It sounds like what I see from here that users are setting the text paragraph justification internally in the editor and thinking they are setting the text justification.

Worse freaking thing AutoDesk ever did was put that Text Justification in the editor.  I have seen so much abuse.

That was it exactly.  But also in combination with a 0 width.  Paragraph justification stands out when width is applied to the mtext.
That combination really wreaks havoc on a utility that depends on the bounding box really being where the object is displayed/printed.

Thank you.

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Super Wierd MText Mirroring behaviour
« Reply #4 on: September 30, 2013, 12:59:15 PM »
Check out StripMtext Lisp authored by Steve Doman and Joe Burke.   Pretty Sweet for resetting formatting of text.  It what I use.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans