CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 4663

CAD tip CAD tip # 1818:

Question CAD 
 %  platform  category 
Q - question

How to make a multicolored line entity in AutoCAD?

A - answer Although it may sound impossible - you CAN draw multicolored lines/polylines in AutoCAD.

MLINE functionality can be used for this. Use the MLSTYLE command to define a new multiline style and define (element properties) two line elements, both with the offset equal to 0. Set different colors to them (e.g. green and red). Use different linetypes, e.g. DASHED and DASHED2 (you may need to Load them first) - for real-life applications you will probably need to define your own linetypes. Save the new Mline style. Now use the MLINE command to draw a polyline using this new mlstyle - it has alternating green/red colors!


You can use the same approach to define even three or more colors.

As AutoCAD allows to define complex linetypes containing text, you can even make linetypes (mlines) with embedded text in a different color than the line (e.g. line in a BYLAYER color and text always in blue). For this you need to define one complex linetype containing text and almost no lines (e.g. only dots) plus a appropriate dashed linetype with spaces for the text. To see the principle you can define such multicolor text linetype using MLSTYLE with elements of DASHED and GAS (shipped with AutoCAD) linetypes. See the BUDWEISER benchmark drawing (DWG also downloadable from for examples (benchmark #5).

100% *  CAD 
13.12.2001    83405×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 11816:How to convert 3D CAD model to the format glTF 2.0 (GLB)?
Tip 11433:Should I use Win10 Game Mode for my AutoCAD, Inventor or Revit?
Tip 10607:How to export an Inventor 3D model to the IFC format?
Tip 9965:How to create a 360° spherical panorama of your CAD model?
Tip 8901:Generate CNC codes online - easy manufacturing of 3D CAD models.

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   

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