[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Layer Color, Lineweight, and Plot Style Utilities
Tip# 4446 By Michael Partenheimer On 30-Mar-2015
Rated By 0 users Downloaded : 173
Categories : Layer Properties, Styles
Software type : AutoCAD 2015
Rename File To : LayerColorUtilities/,LayerColorUtilities/Color2lineweight.lsp,LayerColorUtilities/Lineweight2Color.lsp,LayerColorUtilities/NCSpstyle2lineweight.lsp,LayerColorUtilities/NCSv5.stb
Set the lineweight of each layer based on the layer color or layer plot styles, or set layer colors based on the lineweight of that layer.

Frequent contributor Michael Partenheimer notes that the National CAD Standard (NCS) no longer associates a color to a plot thickness. He has submitted three separate but related LISP routines to help AutoCAD users with this transition. The first, Color2lineweight.lsp, is designed to set the lineweight of each layer based on the layer color. It only contains mappings for colors 1–19, so you can use this as a guide for setting up a routine that fits your layer colors. The second routine, NCSpstyle2lineweight.lsp, sets layer lineweights based on the layer plot styles in STB plot style–based drawings. The last routine, Lineweight2Color.lsp, sets layer colors based on the lineweight of that layer.

All of these LISP routines are currently configured to be loaded and executed by dragging and dropping them into AutoCAD. If you prefer to load these routines up front and execute at a later time, you can do so; instructions are provided in each file.


Average Rating:

User comments

Log In