To produce a Section in the Main Menu select Operations - > Boolean - > Section
This operation creates the section between 2 shapes.
The Result will be a GEOM_Object (COMPOUND).
TUI Command: geompy.MakeSection(s1, s2)
Arguments: Name + 2 shapes.
Example:
Our TUI Scripts provide you with useful examples of the use of Boolean Operations.