parameters: (archObject, cutPlane, sideFace)
docstring: cut object from a plan define by a face, Behind = 0 , front = 1
docstring_summary: cut object from a plan define by a face, Behind = 0 , front = 1
docstring_tokens: cut object from a plan define by a face Behind = 0 front = 1
function: def cutComponentwithPlane(archObject, cutPlane, sideFace):
      """cut object from a plan define by a face, Behind = 0 , front = 1"""
      cutVolume = ArchCommands.getCutVolume(cutPlane, archObject.Object.Shape)
      if sideFace == 0:
          cutVolume = cutVolume[2]
      else:
          cutVolume = cutVolume[1]
      if cutVolume:
          obj = FreeCAD.ActiveDocument.addObject("Part::Feature","CutVolume")
          obj.Shape = cutVolume
          obj.ViewObject.ShapeColor = (1.00,0.00,0.00)
          obj.ViewObject.Transparency = 75
          if "Additions" in archObject.Object.PropertiesList:
              ArchCommands.removeComponents(obj,archObject.Object)
              return None
          else:
              cutObj = FreeCAD.ActiveDocument.addObject("Part::Cut","CutPlane")
              cutObj.Base = archObject.Object
              cutObj.Tool = obj
              return cutObj
function_tokens: def cutComponentwithPlane ( archObject , cutPlane , sideFace ) : cutVolume = ArchCommands . getCutVolume ( cutPlane , archObject . Object . Shape ) if sideFace == 0 : cutVolume = cutVolume [ 2 ] else : cutVolume = cutVolume [ 1 ] if cutVolume : obj = FreeCAD . ActiveDocument . addObject ( "Part::Feature" , "CutVolume" ) obj . Shape = cutVolume obj . ViewObject . ShapeColor = ( 1.00 , 0.00 , 0.00 ) obj . ViewObject . Transparency = 75 if "Additions" in archObject . Object . PropertiesList : ArchCommands . removeComponents ( obj , archObject . Object ) return None else : cutObj = FreeCAD . ActiveDocument . addObject ( "Part::Cut" , "CutPlane" ) cutObj . Base = archObject . Object cutObj . Tool = obj return cutObj