[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.
Force Blocks to Specific Layers
Tip# 2197 By Peter Jamtgaard On 01-Apr-2007
Rated By 1 users Downloaded : 1078
Categories : Layer Properties, Standard Blocks, Blocks
Software type : AutoCAD
Rename File To : Tip 2197: blocklayer.lsp
Forces block insertions to follow a specific layer standard.

Force Blocks to Specific Layers (Tip #2197) from Peter Jamtgaard is a magnificent set of functions that forces your block insertions to follow a specific layer standard. Two files in addition to a LISP file are included with this tip. Place the associated DCL and CSV files in a folder searched by AutoCAD. When loaded, a reactor is established that checks for Insert and MInsert command execution completion. This reactor function looks at the name of the inserted block and checks it against a list of standard layer assignments (stored in the CSV file). If the block isn't in the list of known blocks, a dialog box opens for you to set up the block-layer relationship. You also can edit the block-layer relationships by entering the command BlockLayer at the Command prompt after the LISP code has been loaded. This tip involves a lot of complex programming, reading and writing a CSV file, dialog box manipulation and reactors. As a result of all the cool coding, this tip clearly deserves to be this month's top tip. Great work, Peter!



Average Rating:

User comments

Log In