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

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! A true two-color (dual-color line)!

From BUDWEISER.DWG - multi-coloured entity

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 www.cadstudio.cz/download) for examples (benchmark #5).

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

See also:
Tip 13975:How to distinguish open tabs in Revit by project?
Tip 13579:Quick local opening of F3D files in Fusion 360.
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?


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:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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