Dimension Overlap

Function Syntax dimoverlap
Current Version 1.2
Download DimensionOverlapV1-2.lsp
View HTML Version DimensionOverlapV1-2.html
Donate

Program Description

This program will automatically detect overlapping linear dimensions in all layouts and all blocks in a drawing, and will move such dimensions to a separate layer specified in the code.

The program is designed to be entirely autonomous, therefore, upon issuing the command syntax dimoverlap at the AutoCAD command-line, the program will automatically iterate over all linear dimensions (rotated or aligned) found in all layouts & blocks in the active drawing and, for every dimension, will test whether the dimension overlaps other dimensions in the drawing.

Demonstration

Dimension Overlap Demo

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.

textsize

increase · reset · decrease

Designed & Created by Lee Mac © 2010