Dimension Overlap
Function Syntax | dimoverlap |
Current Version | 1.3 |
Download | DimensionOverlapV1-3.lsp |
View HTML Version | DimensionOverlapV1-3.html |
Compatible with AutoCAD for Mac? | No |
Compatible with AutoCAD LT? | Yes |
Donate |
Program Description
This program will automatically detect overlapping linear dimensions in either a selection or in all layouts and blocks in a drawing, and will move such dimensions to a separate layer specified in the code.
Upon issuing the command syntax dimoverlap at the AutoCAD command-line, the program will prompt the user for a selection of linear dimensions (rotated or aligned) to check; alternatively, the user may press ENTER at this prompt to automatically iterate over all linear dimensions (rotated or aligned) found in all layouts & blocks in the active drawing. The program will then test whether each dimension in the selection/drawing overlaps any other dimensions in the selection/drawing - note that this process may take some time to complete for large drawings.
Demonstration

Configuring Program Parameters
The following parameters are defined near the top of the program file and may be adjusted to suit the user's requirements:
;;----------------------------------------------------------------------;; ;; Program Parameters ;; ;;----------------------------------------------------------------------;; ;; Tolerance within which dimensions are deemed to overlap tol 0.01 ;; Layer properties for overlapping dimensions lay '( (002 . "DIMOVERLAP") ;; Layer Name (062 . 1) ;; Layer Colour (1-255) (006 . "Continuous") ;; Layer Linetype (Must be loaded in drawing) (370 . -3) ;; Layer Lineweight (Default = -3, else lineweight*100 e.g. 2.11 = 211) ) ;;----------------------------------------------------------------------;;
The tolerance parameter determines the number of drawing units within which dimensions are deemed to overlap. With the current configuration, if two dimensions are not located directly above each other, but are within 0.01 drawing units of each other, they will be tested for overlapping extension lines.
The subsequent list of layer properties defines the name of the layer to be assigned to overlapping dimensions and the list of properties which will be applied to such layer. This layer will be automatically created if not already present in the active drawing. Note that the linetype assigned to the layer must be already loaded in the active drawing.
Instructions for Running
Please refer to How to Run an AutoLISP Program.