Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2d drawing contain any 3d object

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
302 Views, 3 Replies

2d drawing contain any 3d object

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
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

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
Message 3 of 4
Anonymous
in reply to: Anonymous

hi Joe Burke

Thanks for your valuable help... Can I find the objects which is in 3d?.

Regards,
Manoj Kumar
Message 4 of 4
Anonymous
in reply to: Anonymous

You're welcome,

Have you tried front view?

Command: -VIEW
Enter an option [?/Delete/Orthographic/Restore/Save/sEttings/Window]: o
Enter an option [Top/Bottom/Front/BAck/Left/Right]: f


wrote in message news:6279353@discussion.autodesk.com...
hi Joe Burke

Thanks for your valuable help... Can I find the objects which is in 3d?.

Regards,
Manoj Kumar

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report