Package empro :: Module empro :: Module geometry :: Class BooleanOperation
[frames] | no frames]

Class BooleanOperation

core.Updatable --+        
                 |        
   core.Selectable --+    
                     |    
               Feature --+
                         |
                        BooleanOperation

Performs a boolean operation on a number of parts.

Class Hierarchy for BooleanOperation
Class Hierarchy for BooleanOperation

constructor BooleanOperation(OperationType):

Instance Methods
 
__getitem__(x, y)
x[y]
 
__len__(x)
len(x)
None
addPart(iPart, iTakeOwnership)
Adds a part to the boolean operation.
Part
blank()
Returns the part used by the boolean operation as the blank.
list(Part)
parts()
Returns the list of all participants.
Part
tool()
Returns the part used by the boolean operation as the tool.

Inherited from Feature: isSuppressed, referenceCoordinateSystem, suppress, unsuppress

Inherited from core.Selectable: clone, isSelected

Inherited from core.Updatable: __enter__, __exit__, hash, isValid, reasonWhyInvalid

Properties
stringNone operationType
The boolean operation type, it can be one of('SubtractBooleanOperation','UnionBooleanOperation','IntersectBooleanOperation','ChopBooleanOperation','NonRegUnionBooleanOperation')
boolNone ownsConstituentParts
Determines whether the boolean operation owns constituent parts.

Inherited from core.Selectable: metaData, name, notes

Method Details

addPart(iPart, iTakeOwnership)

 

Adds a part to the boolean operation.

Parameters:
  • iPart (Part) - The part that has to be added.
  • iTakeOwnership (bool) - Determines whether the part takes ownership or not.
Returns: None