Remove first and last line

Hi Guy,

I have one list are lines, I try to use shift list with W=false to remove last and first line in my list. But I can’t get it to work correctly.

REMOVE LINES.gh (9.9 KB)
REMOVE LINES.3dm (509.9 KB)

Thanks alot
John

1 Like

Hi Jmtbim,

why not try cull index component.
you can you -1 and 0 as input indexes to accomplish that.

Hi Lei,
And the result are curves with last item was removed?
image

yes.

make sure enable the ‘W’ as True, which means you can wrap the items.

Hi,
I set is true but in rhino view do not see curve to select

1 Like

demo.gh (3.2 KB)

Hi,
Thanks,
For demo is work but in my file not working

2 Likes

I see the geometries you created is a nest. So you got 2 directions of lns, vertical and horizontal.
I think you need to convert your data tree(for now is single branch) to 2 branches, 1 for vertical and another for horizontal. under this senario I think it should work.

Hi,
in my file have two directions X and Y

REMOVE LINES.gh (9.3 KB)

can you upload your RH file converted to V.5?
I could not open your V.6 file.(sorry I am still using V.5… OG :P)
thanks.

Hi,

First of all, pls internalize your geometry (right click on brep/internalize geometry) that way you only have to upload the GH file. :slight_smile:

Second:
In your file, you have two series of very long rectangles that look like lines
when you say “lines” do you mean the rectangles or the lines of the rectangles?

If it’s the first case, this is a way to do it:
lines.gh (61.2 KB)

Hi,
For detail very simple I just bake my lines for two directions X and Y.
Then I selected them my result as below
REMOVE LINES V2.gh (12.1 KB)

can you pls explain what your final goal is?
do you want to extract the squares between the lines?

Hi,
For final my result is rectangular surface internal my lines same as my gh file

like this?

lines.gh (6.4 KB)

2 Likes

Hi,
Thank you, but the boundary from brep source in my file