mastoron.boolean¶
- class BooleanCeiling[source]¶
Bases:
mastoron.boolean.BooleanSketchBased- getIntersects(elements)¶
Gets all intersecting elements for each input element.
- Parameters
elements (object) – A list of Revit elements
- Returns
A list of lists containing the intersecting elements
- Return type
object
- makeBoolean(elements)¶
Performs a boolean union operation on a list of solids.
- Parameters
elements (solid) – A list of Revit solids
- Returns
The resulting solid
- Return type
solid
- mergeLists(lists)¶
Combines all lists with shared items into one list. List that do not share items will remain separate.
- Parameters
lists (string) – A list of lists containing strings
- Returns
A list of lists with no shared items inbetween lists
- Return type
string
- toElements(nestedList)¶
Converts strings of element ids to revit elements.
- Parameters
nestedList (string) – A list of lists of element ids as strings
- Returns
A list of lists of Revit elements
- Return type
object
- toIdStrings(nestedList)¶
Convert Revit elements to element ids as strings.
- Parameters
nestedList (object) – A list of lists of Revit elements
- Returns
A list of lists of element ids as strings
- Return type
string
- class BooleanFloors(floors, floorType)[source]¶
Bases:
mastoron.boolean.BooleanSketchBasedClass for boolean operations on floor elements.
- __init__(floors, floorType)[source]¶
Inits a new BooleanFloor instance that booleans all input floors. Deletes input floors.
- Parameters
floors (object) – A list of Revit floors
floorType (object) – A Revit floor type
- getIntersects(elements)¶
Gets all intersecting elements for each input element.
- Parameters
elements (object) – A list of Revit elements
- Returns
A list of lists containing the intersecting elements
- Return type
object
- makeBoolean(elements)¶
Performs a boolean union operation on a list of solids.
- Parameters
elements (solid) – A list of Revit solids
- Returns
The resulting solid
- Return type
solid
- mergeLists(lists)¶
Combines all lists with shared items into one list. List that do not share items will remain separate.
- Parameters
lists (string) – A list of lists containing strings
- Returns
A list of lists with no shared items inbetween lists
- Return type
string
- toElements(nestedList)¶
Converts strings of element ids to revit elements.
- Parameters
nestedList (string) – A list of lists of element ids as strings
- Returns
A list of lists of Revit elements
- Return type
object
- toIdStrings(nestedList)¶
Convert Revit elements to element ids as strings.
- Parameters
nestedList (object) – A list of lists of Revit elements
- Returns
A list of lists of element ids as strings
- Return type
string
- class BooleanRoof[source]¶
Bases:
mastoron.boolean.BooleanSketchBased- getIntersects(elements)¶
Gets all intersecting elements for each input element.
- Parameters
elements (object) – A list of Revit elements
- Returns
A list of lists containing the intersecting elements
- Return type
object
- makeBoolean(elements)¶
Performs a boolean union operation on a list of solids.
- Parameters
elements (solid) – A list of Revit solids
- Returns
The resulting solid
- Return type
solid
- mergeLists(lists)¶
Combines all lists with shared items into one list. List that do not share items will remain separate.
- Parameters
lists (string) – A list of lists containing strings
- Returns
A list of lists with no shared items inbetween lists
- Return type
string
- toElements(nestedList)¶
Converts strings of element ids to revit elements.
- Parameters
nestedList (string) – A list of lists of element ids as strings
- Returns
A list of lists of Revit elements
- Return type
object
- toIdStrings(nestedList)¶
Convert Revit elements to element ids as strings.
- Parameters
nestedList (object) – A list of lists of Revit elements
- Returns
A list of lists of element ids as strings
- Return type
string
- class BooleanSketchBased(elements)[source]¶
Bases:
objectBase class for boolean operations on sketch based elements.
- __init__(elements)[source]¶
Inits a new BooleaSketchBased instance.
- Parameters
elements (object) – A list of Revit elements
- getIntersects(elements)[source]¶
Gets all intersecting elements for each input element.
- Parameters
elements (object) – A list of Revit elements
- Returns
A list of lists containing the intersecting elements
- Return type
object
- makeBoolean(elements)[source]¶
Performs a boolean union operation on a list of solids.
- Parameters
elements (solid) – A list of Revit solids
- Returns
The resulting solid
- Return type
solid
- mergeLists(lists)[source]¶
Combines all lists with shared items into one list. List that do not share items will remain separate.
- Parameters
lists (string) – A list of lists containing strings
- Returns
A list of lists with no shared items inbetween lists
- Return type
string