Split

Splits the specified object(s) along a plane.

UI Access Modeler > Boolean > Split.
Parameters
Name Type Description
<SelectionsArray> Array Structured array. See: SelectionsArray.
<Parameters> Array Structured array.

Array("NAME:SplitToParameters",

"SplitPlane:=" , <string "XY", "YZ", "ZX", or "Dummy">,

"WhichSide:=" , <string "PositiveOnly", "NegativeOnly" or "Both">,

"ToolType:=" , <string "PlaneTool" or "FaceTool">,

"ToolEntityID:=" , <-1 if using SplitPlane; else FaceID>,

"SplitCrossingObjectsOnly:=", <boolean>,

"DeleteInvalidObjects:=", <boolean>)

You can split an object either along an existing plane , or by creating a plane using an edge.

For existing plane:

  • SplitPlane is "XY", "YZ", or "ZX"
  • ToolType is "PlaneTool"
  • ToolEntityID is -1

For an edge:

  • SplitPlane is "Dummy"
  • ToolType is "EdgeTool"
  • ToolEntityID is the face ID
Return Value None.

Python Syntax

Split(<SelectionsArray>, <Parameters>)

Python Example

oEditor.Split(

["NAME:Selections",

"Selections:=" , "Box1",

"NewPartsModelFlag:=" , "Model"

],

["NAME:SplitToParameters",

"SplitPlane:=" , "XY",

"WhichSide:=" , "PositiveOnly",

"ToolType:=" , "PlaneTool",

"ToolEntityID:=" , -1,

"SplitCrossingObjectsOnly:=", False,

"DeleteInvalidObjects:=", True

])