You can use something like this:
def CreateSectionPlane(Name, Location, Direction):
"""
Name (string)
Location (list of values XYZ)
Direction (list of values XYZ to define plane normal)
"""
CS = ExtAPI.DataModel.GetObjectsByType(DataModelObjectCategory.CoordinateSystem)[0]
CS.CreateSectionPlane()
SecPlane=ExtAPI.Graphics.SectionPlanes[len(ExtAPI.Graphics.SectionPlanes)-1]
SecPlane.Name = Name
LenUnit = ExtAPI.DataModel.CurrentUnitFromQuantityName('Length')
SecPlane.Center=Ansys.Mechanical.Graphics.Point([float(V) for V in Location], LenUnit)
SecPlane.Direction=Ansys.ACT.Math.Vector3D(Direction[0],Direction[1],Direction[2])
return SecPlane
SecPlane = CreateSectionPlane("This", [0,50,0], [0,1,0]) #create a section plane at y = 50 in the Y-Normal direction called "This"
Further options to orient the camera in the graphics window to the section plane.
Camera=ExtAPI.Graphics.Camera
Camera.ViewVector=-SecPlane.Direction
Camera.FocalPoint=SecPlane.Center