Author Topic: All Text Formatting Codes  (Read 2665 times)

0 Members and 1 Guest are viewing this topic.

jtoverka

  • Newt
  • Posts: 127
All Text Formatting Codes
« on: August 07, 2023, 11:53:26 AM »
Does anyone know a reference, or could provide a reference to all text formatting codes that one may find in MTEXT or MLeaders?
I am looking for an exhaustive list or something close.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

chell12

  • Mosquito
  • Posts: 2
Re: All Text Formatting Codes
« Reply #2 on: January 04, 2024, 01:23:15 PM »
Hello;

I am in the same boat as jtoverka, I need a comprehensive list of Mtext codes. A partial list just will not cut it as my task is to take an Mtext string from Autocad and convert it to a formatted string in Revit.

After scouring the internet for some 4 hours now, I think such a reference is not to be found outside of some office at Autodesk.

Michelle

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: All Text Formatting Codes
« Reply #3 on: January 04, 2024, 01:51:23 PM »
I do not have Revit, so I cant test, but what programming options are available in Revit?  Maybe LISP or .Net or even VBA (yes I said that outloud)
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: All Text Formatting Codes
« Reply #4 on: January 04, 2024, 01:52:43 PM »
as a side thought, can you post some of the formatting from Autocad you want to convert?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2140
  • class keyThumper<T>:ILazy<T>
Re: All Text Formatting Codes
« Reply #5 on: January 04, 2024, 02:24:39 PM »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

chell12

  • Mosquito
  • Posts: 2
Re: All Text Formatting Codes
« Reply #6 on: January 04, 2024, 03:35:49 PM »
Hello David:

Revit has a variety of programming interfaces: Dynamo (which can include Python nodes), Python via Revit Python Shell, compiled macros, and of course compiled add-ins. After bumping around a bit, I have sortof settled on Python & Revit Python Shell as it is an interpreted language and I have immediate access to Revit model. Unfortunately, RPS is not an environment like visualLisp - no real debugging support.

Note that I can drive Autocad from Revit but I cannot drive Revit from Autocad. So from Revit, I use Autocad's ActiveX interface to get at a DWG file.

Attach is a sample file with some Mtext. This is just a sample from a random file.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4075
Re: All Text Formatting Codes
« Reply #7 on: January 04, 2024, 04:31:31 PM »
Good news is we have a Python expert here, who hopefully will see this and maybe can give a few ideas
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)