Ok, now my problem is that on my function for filtering all objects with a z-value of 0 I'm getting 3D polylines selected, even though their z-values are not 0 - being polylines, they have multiple z-values. How do I get around this?
;FILTERS ALL OBJECTS WITH Z-VALUE OF 0
(defun c:fz0(/ cSet)
(setq cSet(ssget
'((-4 . "*,*,=") (10 0.0 0.0 0.0))
); end ssget
); end setq
(if cSet
(progn
(princ(strcat "\n" (itoa(sslength cSet)) " found."))
(sssetfirst nil cSet)
); end progn
(princ "\nNothing found. ")
); end if
(princ)
); end of c:fz0
EDIT: looking at the DXF codes of the 3D polylines, their group 10 value is 0.0, so obviously it's another group code that I need to work with, but I can't work out which one.....