Author Topic: Erase every other line  (Read 2524 times)

0 Members and 1 Guest are viewing this topic.

Dave20165

  • Guest
Erase every other line
« on: November 09, 2006, 02:56:33 PM »
Hey everyone, I've got a drawing right now(2006 ldd) that has about 15 profiles in it.  It was created by a consultant(so I'm not going to re-create it) but it has vertical lines shown every 10 feet.  The profile looks too crowded so I want to erase every other 10' grid line so that they are shown every 20' instead.  I'd rather not manually delete every other line if I don't have to.  Does anyone know of a lisp routine that would help me out on this?  Thanks for any input.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Erase every other line
« Reply #1 on: November 09, 2006, 03:02:37 PM »
Hey everyone, I've got a drawing right now(2006 ldd) that has about 15 profiles in it.  It was created by a consultant(so I'm not going to re-create it) but it has vertical lines shown every 10 feet.  The profile looks too crowded so I want to erase every other 10' grid line so that they are shown every 20' instead.  I'd rather not manually delete every other line if I don't have to.  Does anyone know of a lisp routine that would help me out on this?  Thanks for any input.
I don't have one, but you could write one.  Psuedo code

Select the first line to stay
Select all the other lines
Make an associated list of all the lines selected (ename . distance from first line)
Sort list by distance
Step through the list eraseing everyother one, starting with the first one

Hope that helps.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

uncoolperson

  • Guest
Re: Erase every other line
« Reply #2 on: November 09, 2006, 03:28:58 PM »
erase all, then array?

dan19936

  • Guest
Re: Erase every other line
« Reply #3 on: November 09, 2006, 05:50:12 PM »
Create a selection set using the fence selection method. Fence selects objects in order from point to point, not creation order as crossing windows do. Then process the selection set erasing every other one.

Dan

Guest

  • Guest
Re: Erase every other line
« Reply #4 on: November 09, 2006, 07:43:25 PM »
Ya know.... by now you could've erased them all manually and be done with it. :-D