TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Dave M on January 20, 2021, 01:19:11 PM

Title: DTEXT words to individual letters
Post by: Dave M 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
Title: Re: DTEXT words to individual letters
Post by: d2010 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 ?>

Title: Re: DTEXT words to individual letters
Post by: CAB on January 21, 2021, 10:08:27 AM
Don't remember the spacing but do remember a lisp to explode the words.
Title: Re: DTEXT words to individual letters
Post by: Dave M 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
Title: Re: DTEXT words to individual letters
Post by: hmspe 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.
Title: Re: DTEXT words to individual letters
Post by: Lee Mac 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:
Title: Re: DTEXT words to individual letters
Post by: Dave M 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
Title: Re: DTEXT words to individual letters
Post by: Jeff_M 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.
Title: Re: DTEXT words to individual letters
Post by: BIGAL 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.
Title: Re: DTEXT words to individual letters
Post by: ronjonp on January 22, 2021, 03:28:57 PM
There is also this http://www.lee-mac.com/curvealignedtext.html
Title: Re: DTEXT words to individual letters
Post by: Dave M on January 22, 2021, 06:30:35 PM
There is also this http://www.lee-mac.com/curvealignedtext.html (http://www.lee-mac.com/curvealignedtext.html)


Thanks, that does exactly what I was looking for!
Title: Re: DTEXT words to individual letters
Post by: CAB on January 25, 2021, 12:07:59 PM
The ninja strike again.  8)