Hi everybody,
I am having a problem with starts and ends of lines. I have draw two lines, end of first is start of second. The problem is because, (cdr (assoc 11 (entget line1))) and (cdr (assoc 10 (entget line2))), somehow, are not the same,
(= (cdr (assoc 11 (entget line1))) (cdr (assoc 10 (entget line2))))
is returning nil, what is so confusing to me is that:
(=(nth 0(cdr (assoc 11 (entget line1)))) (nth 0(cdr (assoc 10 (entget line2)))))
is returning true, the same is for y and z coordinates.
Is anybody having an answer to this problem, or or I need to check x y and z coordinates, for this type of problem...
Thanks at advance
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
Read up on equal function then you'll understand
(equal (cdr (assoc 11 (entget line1))) (cdr (assoc 10 (entget line2))))
HTH
EDIT: oops.. I'm too slow 😄