M.Kumar,
Something as simple as this may suffice.
{code}
;; Check Z extents.
(defun c:CZ ( )
(command "._zoom" "_extents")
(if
(and
(equal 0.0 (caddr (getvar "extmin")) 1e-6)
(equal 0.0 (caddr (getvar "extmax")) 1e-6)
)
(princ "\nDrawing is flat. ")
(princ "\nDrawing is not flat. ")
)
(princ)
) ;end
{code}
Joe Burke
wrote in message news:6278618@discussion.autodesk.com...
Hi,
Can Anyone help me.
I have a large drawing with lot of attachment. I need a lisp programme to check each
object in the drawing is 2d or 3d. if any 3d (z coordinate value other than 0) it
want to show a message like "2d drawing contains 3d Objects.
Regrads,
M.Kumar