Author Topic: AutoCAD Mtext Formatting bug?  (Read 3036 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7526
AutoCAD Mtext Formatting bug?
« on: November 13, 2017, 03:29:58 PM »
Can anyone else replicate this?
* Must be drawing specific .. cannot replicate in empty template. Also same behavior in 2016-2018 vanilla AutoCAD.
« Last Edit: November 13, 2017, 03:53:38 PM by ronjonp »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: AutoCAD Mtext Formatting bug?
« Reply #1 on: November 13, 2017, 04:10:37 PM »
I am not getting that bug. I have not tested it in 2018.1 though.
Civil3D 2020

ronjonp

  • Needs a day job
  • Posts: 7526
Re: AutoCAD Mtext Formatting bug?
« Reply #2 on: November 13, 2017, 04:15:58 PM »
I am not getting that bug. I have not tested it in 2018.1 though.
Did you try that test drawing?

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: AutoCAD Mtext Formatting bug?
« Reply #3 on: November 13, 2017, 04:20:30 PM »
... Bug... Up.... same thing with your drawing.
Civil3D 2020

ronjonp

  • Needs a day job
  • Posts: 7526
Re: AutoCAD Mtext Formatting bug?
« Reply #4 on: November 13, 2017, 04:41:42 PM »
... Bug... Up.... same thing with your drawing.
Thanks for testing.  :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: AutoCAD Mtext Formatting bug?
« Reply #5 on: November 13, 2017, 04:46:35 PM »
dude.... its the least I can do for all the stuff you help me on. lol
Civil3D 2020

steve.carson

  • Newt
  • Posts: 108
Re: AutoCAD Mtext Formatting bug?
« Reply #6 on: November 13, 2017, 05:49:24 PM »
Same result here - Civil3D 2016

HasanCAD

  • Swamp Rat
  • Posts: 1420
Re: AutoCAD Mtext Formatting bug?
« Reply #7 on: November 14, 2017, 01:26:57 AM »
Same result here - CAD2014

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: AutoCAD Mtext Formatting bug?
« Reply #8 on: November 14, 2017, 03:21:42 AM »
BricsCAD does not show this bug but does report an _Audit issue related to the linetype of the entity. Maybe fixing that will also solve this bug?

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: AutoCAD Mtext Formatting bug?
« Reply #9 on: November 14, 2017, 04:07:42 AM »
I also get the  {\fArial|b0|i0|c161|p34;1447'}.

You can delete it when you set the text editor to an external editor.
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: AutoCAD Mtext Formatting bug?
« Reply #10 on: November 14, 2017, 04:09:21 AM »
If I edit the text style, it is set to Arial Greek.
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Re: AutoCAD Mtext Formatting bug?
« Reply #11 on: November 14, 2017, 05:04:12 AM »
Change the font BEFORE edit (tested on A2013).

ronjonp

  • Needs a day job
  • Posts: 7526
Re: AutoCAD Mtext Formatting bug?
« Reply #12 on: November 14, 2017, 09:48:45 AM »
BricsCAD does not show this bug but does report an _Audit issue related to the linetype of the entity. Maybe fixing that will also solve this bug?
Unfortunately no.  :(

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

ahsattarian

  • Newt
  • Posts: 112
Re: AutoCAD Mtext Formatting bug?
« Reply #13 on: July 28, 2021, 05:42:54 AM »
Try This  :




Code - Auto/Visual Lisp: [Select]
  1. (defun c:a ()
  2.   (setq ss (ssget '((0 . "mtext,dimension,multileader"))))
  3.   (setq n (sslength ss))
  4.   (setq k -1)
  5.   (repeat n
  6.     (setq k (1+ k))
  7.     (setq s (ssname ss k))
  8.     (setq en (entget s))
  9.     (setq typ (strcase (cdr (assoc 0 en)) t))
  10.     (setq ass 1)
  11.     (cond ((= typ "multileader") (setq ass 304)))
  12.     (setq txt1 (cdr (assoc ass en)))
  13.     (setq txt2 "")
  14.     (setq i 1)
  15.     (setq len (strlen txt1))
  16.     (while (<= i len)
  17.       (setq let (substr txt1 i 1))
  18.       (if (= let "\\")
  19.         (progn
  20.           (setq i (1+ i))
  21.           (setq let (substr txt1 i 1))
  22.           (if (or (= let "{") (= let "}") (= let "\\") (= let "P"))
  23.             (setq txt2 (strcat txt2 "\\" let))
  24.             (while (and (/= let ";") (<= i len)) (setq i (1+ i)) (setq let (substr txt1 i 1)))
  25.           )
  26.         )
  27.         (cond ((and (/= let "{") (/= let "}")) (setq txt2 (strcat txt2 let))))
  28.       )
  29.       (setq i (1+ i))
  30.     )
  31.     (cond ((/= txt1 txt2) (setq en (subst (cons ass txt2) (assoc ass en) en)) (entmod en)))
  32.   )
  33.   (princ)
  34. )