LISP for selecting all the improper stacked fractions in the drawing

LISP for selecting all the improper stacked fractions in the drawing

Anonymous
Not applicable
1,290 Views
7 Replies
Message 1 of 8

LISP for selecting all the improper stacked fractions in the drawing

Anonymous
Not applicable

I am having drawings , which has fonts whose proper SHX file is not available. So, the stacked fractions present as single line text are displayed as a fraction. So, with the reference document from the customer, i have to convert all single line text in the dwg file to multi line text. After doing that, with the help of reference document, i need to correct all the question marks to stacked fractions. While doing this, there are chances for missing some question marks without updating them. So, i need a LISP , which selects all illegible stacked fraction texts, which is displayed as a question marks. Kindly help on this to save huge time in updating them and to maintain quality in the work being done.

0 Likes
1,291 Views
7 Replies
Replies (7)
Message 2 of 8

hencoop
Advisor
Advisor

The characters that are displaying as ? are not actually question marks. They are the stacked fraction characters from the missing font.  In order to search for those strings it is necessary to know what those characters are.  Do you know the name of the font that is missing?  If anyone has that font they could find out what characters are involved.

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
0 Likes
Message 3 of 8

Kent1Cooper
Consultant
Consultant

As @hencoop mentioned, what look like question marks are only unknown-character stand-ins in display for special characters in the missing font.  You can at least find out what those missing characters' character-specifying codes are, from the text-content entry in the Properties box or entity data or VLA properties.  But if they are of the kind specified with a %% prefix [like the degrees and diameter and underline/overscore start-end codes in regular Text], or the \U+ -designated variety, you will still need to have the font file in order to be able to determine which of those question marks [if any] represents 1/2, and which 5/8, and which 3/4, and so on.  I don't think there will be any way to tell from the character-specifying codes, without the actual font file.

Kent Cooper, AIA
0 Likes
Message 4 of 8

Anonymous
Not applicable

Hi Hencoop,

 

I have attached the screen shot of the font, which is having issue is attached. All stacked fractions are displayed as question mark.

0 Likes
Message 5 of 8

Anonymous
Not applicable

Hello Kent Cooper, 

 

Thanks a lot for the response. The stacked fractions are displayed as a question mark . All are present as a single line text. When i change them to multi line text, they display %%131 or %%%130, based on the value of the fraction. Then i enter the value manually, by referring to the input PDF of the drawing. In Multi line text, it tends to display the valves correctly. I use the command TXT2MTXT to convert to Multi line and edit them manually. This method seems to be tedious. Kindly suggest, if any other methods are available.  

0 Likes
Message 6 of 8

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... The stacked fractions are displayed as a question mark . ... they display %%131 or %%%130, based on the value of the fraction. .... Kindly suggest, if any other methods are available.  


FIND, with the %%13x character code in the Find what: slot and the spelled-out fraction text in the Replace with: slot.  You can replace all %%131 entries with whatever fraction that represents, and similarly the %%130 entries, all at once in the entire drawing.

Kent Cooper, AIA
0 Likes
Message 7 of 8

Anonymous
Not applicable

Hi Kent Cooper,

 

Thanks for the reply. But still, i need to go back to each MTEXT and convert in to stacked fraction, individually. Is there any way to replace the text as a stacked fraction itself?

0 Likes
Message 8 of 8

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... Is there any way to replace the text as a stacked fraction itself?


I'm not sure, but try pulling the coded content for a stacked fraction, with its curly-bracket wrapping and height ratio and so on, from one that's been converted, and putting all of that into the Replace with: slot in FIND.

Kent Cooper, AIA
0 Likes