
Originally Posted by
blasto
Hi,
I'm using (vl-cmdf "dimlinear" pt1 pt2 pt3) command to create dimensions in a looped subroutine.
and some cases in automation pt1 and pt2 can be the same point or so close that a zero length dimension is created. Its not convenient to compare two points so I wonder if there is a setting or a system variable that prevents zero length dimension objects to be created. thanks
why is it not convenient to compare the 2 points, it's 5 lines of code
Code:
(if (equal pt1 pt2 .001)
();dont do anything if they are "equal" or display a message, or whatever you want.
(progn ;do this if they are not equal
); _end progn
); _end if