Sort Curves w.r.t x and y direction

Sort the curves into two lists , one with x direction and other with y direction.

Reason for getiing that irest is to select a longest side of both direction of a finish slab to place tile start point.

Need some advice guys

Thank you

You have the direction, which is a vector. Vectors have components like X and Y. You can check a vector’s X or Y with Vector.X or Vector.Y respectively.

If you want a vector that goes only in the X direction, and not in the Y direction, that would mean a vector with some value that is not 0 in the X, and 0 value in the Y.