CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 5047

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.
ACAD2000ADTMap
100% *  CAD 
4.4.2005    16912×  
Prices - CAD eShop:

See also:
Tip 13426:Use of alternative units for arithmetic in dimensions (without square brackets).
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?


Back   All CAD Tips



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   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist