CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 4382 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 4325:

Question CAD 
 %  platform  category 
Q - question

How to underline text in a RTEXT entity?

A - answer The RText (remote text) contents can be a Diesel expression or an external file. Control characters are disabled in RText by default. The underline control chars are \L and \l.

To enable processing of control characters (like in MText) also in RText objects, use an undocumented setting - bit 2 in the DXF group 70.

Try e.g. the following code which creates an underlined RText:

(entmake '((0 . "RTEXT")  
(100 . "AcDbEntity")  
(100 . "RText")  
(10 10.0 10.0 0.0)  
(40 . 0.3)  
(70 . 3)  
(7 . "Standard")  
(1 . "UNDERLINED {\\LTEXT}") ) )  
Make sure you have used the RTEXT command at least once in the current session.
100% *  CAD 
4.4.2005    14695×  
Comments   Tell a friend

See also:
Tip 8989:Control codes "%%" in text entities.
Tip 8640:Text formatting codes in MText objects.
Tip 7191:How to increase the offset between MLeader text and underline?
Tip 4324:How to underline text in a MText object?
Tip 3123:Underlining one word and all Mtext is underlined.

Back   All CAD Tips All CAD tips&tricks

How to set the CTB/STB path to the current directory? « | » How to underline text in a MText object?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.