Cut solids using C3D profile

community:
I am trying to make a routine that can cut solids through profiles with the solid slice node. Please give your recommendations so that the routine works. I attached the image and the files.

Greetings
DIVIDIR SOLIDOS VERTICALES1.dyn (16.3 KB)
Solidos Sifon.dwg (6.0 MB)

Hi,
You want to get 2 solids like this?

THANKS FOR THE RESPONSE:

I REQUIRE TO CUT BY LEVELS IN MY ROUTINE I COULD NOT ROTATE THE CUTTING PLANE SO I CAN DO IT THIS WAY:

THE IDEA IS TO REPRESENT THE FILLING LAYERS OF THE STRUCTURE.

I IMPROVED THE CODE BUT IT CANNOT HANDLE THE CUTTING PLANE WELL TO MAKE WHAT I REQUIRE. HELP PLEASE

DIVIDIR SOLIDOS VERTICALES2.dyn (26.6 KB)

Hi,
Why do you only take the first and the last points from your profile? Don’t you want to cut through the profile?

Here’s the corrected .dyn file to slice the solid using the start and end points from your profile.
You must use the alignment as the start and end points for your plane, then take the Z elevation from profile.
Solide_Slice.dyn (67.8 KB)

THANK YOU VERY MUCH FOR YOUR HELP I ONLY HAVE ONE QUESTION THE ROUTINE TAKES THE CORRECT DATA BUT WHEN I GENERATE THE CUTTING PLANE AND CARRY OUT THE CUT THE RESULTING SOLID DOES NOT MATCH THE DIMENSION DEFINED IN THE PROFILE, ANYWAY THE SOLUTION WORKS FOR ME THANKS.
GREETINGS FROM PERU

Do you have slope ?

YES if you have Slope

The definition of the plan cut is based on the vector from the start to the end of the profile and the horizontal plane’s X-axis. To adjust the slope, you need to add a point to the plane with a vector to align the plane with your finished surface.

I have tried to follow your recommendation without success. Please, if you could be more specific, I am new to Dynamo, please.