Making elements parallel to axes in dynamo

Hi, It would be a great help if someone share, is that possible to select elements parallel to X axis in dynamo.

Thanks in Advance.

Hi,

Such a scenario will inspire you.
Durmus
1

Thanks buddy. From where i can learn this script writing any easy reference.