[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.
Update Attributes Quickly
Tip# 3847 By Ricky Medley On 17-Mar-2012
0
Rated By 0 users Downloaded : 1005
Categories : Attributed Blocks, Edit Blocks, Programming Examples
Software type : AutoCAD 2012
Rename File To : quickattribute.lsp
Populate blocks with saved attribute values.

QuickAtt is a comprehensive routine by Ricky Medley designed to let you update the attributes of various blocks in AutoCAD, based on a settings file. You can populate this settings file from existing blocks with attributes or edit the file directly. Updating title block data is just one of the many uses for this routine. Start by loading the LISP file, then run the command QuickAtt. Use the Add subcommand to add attribute values from an existing block, and the PR subcommand to populate other like blocks with the saved attribute values.

This routine includes a dialog box, but no DCL files are required. How is this possible? The author uses LISP code to write the DCL file on the fly at runtime. This is a excellent method since it avoids problems with DCL files that cannot be found at runtime. There are more than 2,600 lines of code and comments in this file; it is very well documented and includes much more functionality than we have room to document here. Check out the code for more information in the comments.

 

Average Rating:
0


User comments
Comment by Medley,Ricky
Posted on 2012-08-28 09:58:47
From Ricky Medley: Line 2558 was unintentionally commented out. (setq attdat (cd:readattdat setfile)) It is essential to it's opperation that this line runs. Sorry to the 233 previous downloads. I have also attached a revised version v1.3 as well.