Good Morning Kent,
I just sent this message to Henrique. I used his most current demo.lsp. ............
I apologize for not having tried the experiment with your .lsp, and will now to see what happens. I'll get back to you on that. However, for the time being here's what happened with Henrique's .lsp.
I've done an analysis. I went through the dimstyles most often used, changed all the text height to .13.
I also went through each dimstyle and checked to see that under the fit tab, the "use overall scale" weren't rounded off and carried the last repeating digit out at least a half dozen times.
I then went and created text for each scale, sized according to the not rounded off number.
Then I did the most current version of the "demo" lisp.
I had success with: 3"=1', 1"=1', 3/4"=1',1/2"=1', 1/4"=1', 1/8"=1', 1/16"=1', 1"=10', 1"=20', and 1"=40 !!!
However, the routine returned "It was not possible to set current a dimension style from the selected text..." when I used it on: 6"=1', 1 1/2"=1', 3/8"=1', 3/16"=1', and 1"=30'.
I double checked to see that the "use overall scale" on the fit tab was correct on the ones that didn't work. The "use overall scale" for the ones that didn't work are as follows: .1666666666666 for 6"=1', .666666666666 for 1 1/2"=1', 2.6666666666 for 3/8"=1', 5.3333333 for 3/16"=1', and 30 for 1"=30'.
I don't see much of a pattern there.
For the ones that did work, the "use overall scale" were whole numbers except for 3"=1' which is .04333333, and 3/4"=1' which is 1.3333333.
I also looked at the various text sizes for the ones that worked versus the ones the worked and didn't see any pattern there either.
The mystery continues. Thanks again for your time and expertise Kent, Ken