Query Separation Lines by Room

Hello, is there a way to filter separation lines based on Room position?

I want to use the in a member index component to find their index number.

Also, is there a way to use a panel that has only the prefix of a certain string that has similar text as prefix but different suffix(for example, different ID)

Can you explain a bit more? What if a two rooms share a separation line? This would most likely solved via geometry collision, i’m not seeing a parameter or property in that regard.

Can you make a small example of the workflow? just text in panels is fine.

Hi Japhy, sure thing!

When I export the Spatial Element Boundary Segments I get a List of lists(Datatree if not mistaken) full of curves, each curve representing a Wall or a Separation Line(A).

When I get the values for Elements of the same component I get the corresponding List with information about the wall types these curves represent (B). This way I can track the Wall types for each curve

Knowing that each index represents the same element(Curve in A is equal to Wall type in B), I want to be able to get the indices of the Separation Lines and Cull both lists in said positions. so that in the end I get the two lists without the Separation Lines.

The only way that comes to my mind is to use the unique names of Separation Lines with the Member Index Component and work with that result.

But if I can’t match S. Lines to Rooms I wont be able to get a similar data tree to use for the Member Index Component.

From here comes my desire to know if I can use only the prefix of those lines(as string Input) to get the indices, because each separation line comes with a unique ID, hence the end of the string will always be different.

In the end, I want to have both lists A and B, with the same data tree structure, but without the separation lines.

member_index_by_Prefix.gh (1.8 KB)

A number of ways to do this.

I would first cull the null values, then get the Element Category Name to filter the results.

The Null Values are an interesting thing in its self, as they represent valid geometry, that after further analysis seems to be exactly where other walls meet this element. That is why they get assigned Null values in my opinion. I hope this picture can explain

That would need to be cleaned up via the Revit UI by changing the wall cleanup at those particular end conditions.