CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2838 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 8649:

Question CAD 
 %  platform  category 
Q - question

How to create a custom color book (ACB palette) in AutoCAD?

A - answer The COLOR dialog in AutoCAD (the "Color Book" tab) lists all color books (.ACB files) defined in the AutoCAD color book search path, as set in the Options dialog.

You can also define and add your own custom color books containing your company colors (e.g. from your corporate identity kit), or colors of your product family (e.g. paints, enamels).

You can use two ways. The simpler one is to use the interactive "Autodesk Color Book Editor" - see www.cadstudio.cz/download. This utility will create the ACB file containing your RGB colors. This file can be then copied to the Support/Color folder to be automatically loaded into AutoCAD.

Another way is to manually define the XML file with the extension .ACB. This file has the following structure:

< ?xml version="1.0" encoding = "UTF-8"?>
< colorBook>
  < bookName>ACME Colors< /bookName>
  < colorPage>
    < pageColor>  < RGB8Encrypt> < redEncrypt>PPC< /redEncrypt> < greenEncrypt>QMH< /greenEncrypt> < blueEncrypt>QZB< /blueEncrypt> < /RGB8Encrypt> < /pageColor>
    < colorEntry>  < colorName>Color-1< /colorName> < RGB8Encrypt> < redEncrypt>LGH< /redEncrypt> < greenEncrypt>LHH < blueEncrypt>UZG< /blueEncrypt> < /RGB8Encrypt> < /colorEntry>
...

As you can see, the color hues are encrypted. But AutoCAD supports also (not documented) an unencrypted version of ACB files. These files differ only slightly from the above format:

< ?xml version="1.0" encoding = "UTF-8"?>
< colorBook>
  < bookName>ACME Colors< /bookName>
  < colorPage>
    < pageColor>  < RGB8> < red>100< /red> < green>100< /green> < blue>100< /blue> < /RGB8> < /pageColor>
    < colorEntry>  < colorName>Color-1< /colorName> < RGB8> < red>100< /red> < green>20 < blue>10< /blue> < /RGB8> < /colorEntry>
...

So you can type your color book manually in a XML editor or even in Notepad. You can also convert/generate such color book programmatically.

PS: remove spaces from the displayed XML tags

ACADRevit
100% *  CAD 
24.5.2012    8269x  
Comments   Tell a friend
applies to: AutoCAD · Revit ·

See also:
Tip 10469:How to install a new color book to your AutoCAD?
Tip 7503:Autodesk 3ds Max keyboard shortcuts.
Tip 6361:Direct entry of a Pantone color hue for AutoCAD entities.
Tip 4498:Can I use RAL color palettes in AutoCAD?
Tip 4497:How to set RAL or Pantone color hue in Inventor?


Back   All CAD Tips All CAD tips&tricks

How to enable or disable Task Pane in AutoCAD Map? « | » Cannot restore AutoCAD window minimized to an icon.

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 BIM add-on functions for Autodesk Revit
CADstudio Revit 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.
TOPlist