@Kent1Cooper has pointed on some of potential troubles.
First thing that has to be checked is to see that all elements inside particular layer are drawn as correct entities.
For example all walls should have closed edges and being created as polylines. In this situation what may happen is that drafter closes polyline by picking end point instead of using close command inside polyline command. Since object snaps are used there is a sligth chance that start and end point differ.
Here you can use lisp fuction that checks if polylines are created that way and close them, so walls can later be hatched or what ever needed.
(defun c:closeApparentlyClosedPolylines ( / ss i eo start end)
(setq ss (ssget "_X" '((0 . "POLYLINE,LWPOLYLINE"))) i -1)
(while (< (setq i (1+ i)) (sslength ss))
(setq
eo (vlax-ename->vla-object (ssname ss i))
start (vlax-curve-getstartpoint eo)
end (vlax-curve-getendpoint eo)
)
(cond
((= (apply '+ (mapcar '- start end)) 0.0) (vlax-put eo 'Closed :vlax-true))
)
)
(princ)
)
This code can be updated with other rules to check if drawing complies with drafting standards.
If walls are created using lines instead polylines then those lines have to be joined .......
checking hundreds of drawings and just marking errors can take a lot of time.
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.