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. |