[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.
DIMASSOC Counter
Tip# 2212 By W. Crawford On 01-Jun-2007
3.5
Rated By 2 users Downloaded : 256
Categories : Styles
Software type : AutoCAD
Rename File To : Tip 2212: CkDimAssoc.lsp
Routine looks at all the dimension objects in a drawing and counts up how many have the DIMASSOC variable set to 1 or 2.

DIMASSOC Counter (Tip #2212) by W. Kirk Crawford looks at all the dimension objects in a drawing and counts up how many have the DIMASSOC variable set to 1 or 2. When DIMASSOC is set to 1, the dimension is considered nonassociative, which means that it doesn't change when you change the geometry. A setting of 2 indicates a properly associative dimension that changes value when you change the geometry. To check the dimensions in a drawing, load the drawing and then the LISP code for this tip. Type DIMCK at the Command prompt after loading and the totals appear in the AutoCAD text window. The source code for this routine contains lots of deeply nested parentheses pairs and is a brilliant example of how to navigate into the block details of an AutoCAD drawing.

 

 

Average Rating:
3.5


User comments