TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mailmaverick on March 13, 2018, 09:59:15 AM

Title: ssget all LINES with Z elevation Not Zero
Post by: mailmaverick on March 13, 2018, 09:59:15 AM
How to ssget all LINES having Z coordinate of Startpoint or Endpoint or Both, not equal to zero.
One option is to select all lines and then iterate through all and remove those with Zero. But is there any direct method ?
Title: Re: ssget all LINES with Z elevation Not Zero
Post by: mjfarrell on March 13, 2018, 10:58:32 AM
Looks like there should be, as I can use a selection set in QuickSelect (3d polylines) Vertex Z <> not equal 0

And it finds only those objects....

I know that isn't much lisp help....
Title: Re: ssget all LINES with Z elevation Not Zero
Post by: ronjonp on March 13, 2018, 11:22:02 AM
Here's a quick filter:

Code - Auto/Visual Lisp: [Select]
  1. (ssget "_X"
  2.        '((0 . "LINE")
  3.          (-4 . "<OR")
  4.          (-4 . "*,*,/=")
  5.          (10 0. 0. 0.)
  6.          (-4 . "*,*,/=")
  7.          (11 0. 0. 0.)
  8.          (-4 . "OR>")
  9.         )
  10. )
Title: Re: ssget all LINES with Z elevation Not Zero
Post by: mailmaverick on March 14, 2018, 02:50:08 AM
Excellent Ron !!!!! Never knew that ssget could be used like this !!!!
Title: Re: ssget all LINES with Z elevation Not Zero
Post by: HasanCAD on March 14, 2018, 04:06:34 AM
For more about ssget
http://lee-mac.com/ssget.html (http://lee-mac.com/ssget.html)
Title: Re: ssget all LINES with Z elevation Not Zero
Post by: ronjonp on March 14, 2018, 09:56:15 AM
Excellent Ron !!!!! Never knew that ssget could be used like this !!!!
Glad to help. :) HERE (http://help.autodesk.com/view/ACD/2018/ENU/?guid=GUID-11EA0ABD-AE29-4DD7-92A5-DFF6EC1C9799) is some more material on filters.