Author Topic: ssget all LINES with Z elevation Not Zero  (Read 1913 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 494
ssget all LINES with Z elevation Not Zero
« 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 ?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: ssget all LINES with Z elevation Not Zero
« Reply #1 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....
Be your Best


Michael Farrell
http://primeservicesglobal.com/

ronjonp

  • Needs a day job
  • Posts: 7526
Re: ssget all LINES with Z elevation Not Zero
« Reply #2 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. )

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

mailmaverick

  • Bull Frog
  • Posts: 494
Re: ssget all LINES with Z elevation Not Zero
« Reply #3 on: March 14, 2018, 02:50:08 AM »
Excellent Ron !!!!! Never knew that ssget could be used like this !!!!

HasanCAD

  • Swamp Rat
  • Posts: 1420
Re: ssget all LINES with Z elevation Not Zero
« Reply #4 on: March 14, 2018, 04:06:34 AM »
For more about ssget
http://lee-mac.com/ssget.html

ronjonp

  • Needs a day job
  • Posts: 7526
Re: ssget all LINES with Z elevation Not Zero
« Reply #5 on: March 14, 2018, 09:56:15 AM »
Excellent Ron !!!!! Never knew that ssget could be used like this !!!!
Glad to help. :) HERE is some more material on filters.

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC