Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"IntersectLine") to partition geometric entities and mesh elements of an imported mesh by specifying a straight line.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the geometric entities to split with the line. If you do not specify the selection, the feature operates on the entire geometry.