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: 8219

CAD tip CAD tip # 13831:

   
Question CAD 
 %  platform  category 
Q - question

ReplMTcol - recoloring parts of text in paragraph Mtext.

A - answer If you need to bulk-change the color of recolored parts in paragraph texts, you can use either general text replacement tools - e.g. srxText and change the color control codes - i.e. \Cnnnn; or \cnnnnnn;. Or you can make these edits easier by using the ReplMTcol utility.

You can download this freeware LISP utility from Download, load it into AutoCAD or AutoCAD LT using APPLOAD and run it by typing the REPLMTCOL command.

After running the command, select the texts, attributed blocks and dimensions in which you want to make any color changes. Then enter the number (or code) of the original color of the text sections to be recolored and the number of the new color. By typing "?" you can list the color codes from existing mtexts or specify the new color code by specifying the hue in the R,G,B components. Texts with truecolor colors need to be recolored twice - they contain both the code for the ACI color number and the longer truecol code for the truecolor hue.

For example, changing from color 1 to 2 will recolor the red parts of the text (red=1 in the ACI code) to yellow (yellow=2 in the ACI code). You can also get truecol codes in the Color Converter (the gray long code number under RGB).

ACADACLTADTACADMPlantMapCivil3D
100% *  CAD 
22.8.2023    55976×  

See also:
Tip 11794:Undocumented code in field expression - MText contents without control characters.
Tip 8951:Multicolor dimension texts in AutoCAD.
Tip 8640:Text formatting codes in MText objects.


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:
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.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist