Author Topic: DTEXT words to individual letters  (Read 2417 times)

0 Members and 1 Guest are viewing this topic.

Dave M

  • Newt
  • Posts: 196
DTEXT words to individual letters
« on: January 20, 2021, 01:19:11 PM »
Wondering if anyone has written a routine to convert a dtext or string to individual letters while keeping the letter spacing?


Thanks
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

d2010

  • Bull Frog
  • Posts: 323
Re: DTEXT words to individual letters
« Reply #1 on: January 21, 2021, 07:05:31 AM »
Wondering if anyone has written a routine to convert a DTEXT/s or string to individual letters while keeping the letter spacing?
Thanks
When you need help :opps:
You must give us 10-12 examples of strings, for testing.
Do you not learn at school, how to make exercise/s ?>


CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: DTEXT words to individual letters
« Reply #2 on: January 21, 2021, 10:08:27 AM »
Don't remember the spacing but do remember a lisp to explode the words.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Dave M

  • Newt
  • Posts: 196
Re: DTEXT words to individual letters
« Reply #3 on: January 21, 2021, 11:46:29 AM »
Wondering if anyone has written a routine to convert a DTEXT/s or string to individual letters while keeping the letter spacing?
Thanks
When you need help :opps:
You must give us 10-12 examples of strings, for testing.
Do you not learn at school, how to make exercise/s ?>


I want to create line styles with words, but I want the spacing of the letters to remain the same as if they were still part of the text, it doesn't matter what the words are though
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

hmspe

  • Bull Frog
  • Posts: 362
Re: DTEXT words to individual letters
« Reply #4 on: January 21, 2021, 12:11:02 PM »
I'd start with 'Text to Words' at lee-mac.com and modify it to work at the character level.
"Science is the belief in the ignorance of experts." - Richard Feynman

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: DTEXT words to individual letters
« Reply #5 on: January 21, 2021, 04:16:17 PM »
I'd start with 'Text to Words' at lee-mac.com and modify it to work at the character level.

I had forgotten I'd even written that program  :uglystupid2:

Dave M

  • Newt
  • Posts: 196
Re: DTEXT words to individual letters
« Reply #6 on: January 21, 2021, 04:24:36 PM »
Unfortunately, I don't know how to code.  I just thought I would ask if anyone knew of something already written.  I will figure something out.


Thanks for the input
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: DTEXT words to individual letters
« Reply #7 on: January 21, 2021, 04:56:11 PM »
Dave, how about drawing an arc with a large radius, so it appears to be close to a straight line. Then use the Express Tools ArcAlignedText to add the text, then explode the text. This returns the individual characters as Text objects.

BIGAL

  • Swamp Rat
  • Posts: 1396
  • 40 + years of using Autocad
Re: DTEXT words to individual letters
« Reply #8 on: January 21, 2021, 07:38:55 PM »
The closest example is Seant's Text2geom its not the solution but shows it can be done as it recognises each character individually and recreates them with correct spacing, the most obvious is "AV" showing how it almost overlaps a "I" is skinny, if you could work a number of combos you could create what you want.  Its a printing function there may be a guide somewhere that can help "If A before V then".

The text spacing is font dependant if you use Monotext its easy.

Getting a list of characters is easy including space.

Ps text2geom has a new beta version released last week.
A man who never made a mistake never made anything

ronjonp

  • Needs a day job
  • Posts: 7526
Re: DTEXT words to individual letters
« Reply #9 on: January 22, 2021, 03:28:57 PM »

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Dave M

  • Newt
  • Posts: 196
Re: DTEXT words to individual letters
« Reply #10 on: January 22, 2021, 06:30:35 PM »
There is also this http://www.lee-mac.com/curvealignedtext.html


Thanks, that does exactly what I was looking for!
Civil 3D 2018 - Microstation SS4 - Windows 10 - Dropbox

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: DTEXT words to individual letters
« Reply #11 on: January 25, 2021, 12:07:59 PM »
The ninja strike again.  8)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.