Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "cwapi3d"
version = "33.293.0"
version = "33.300.0"
authors = [{ name = "Cadwork", email = "it@cadwork.ca" }]
requires-python = ">= 3.14"
description = 'Python bindings for CwAPI3D'
Expand Down
97 changes: 97 additions & 0 deletions src/bim_controller/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -386,3 +386,100 @@ def set_ifc_predefined_type(element_id_list: list[ElementId], predefined_type: i
>>> predefined_type.set_member()
>>> bc.set_ifc_predefined_type(selected_elements, predefined_type)
"""

def delete_storey(building: str, storey: str) -> bool:
"""Deletes a storey from a building.

Parameters:
building: The name of the building.
storey: The name of the storey to delete.

Returns:
True if the storey was deleted successfully, false otherwise.
"""

def delete_building(building: str) -> bool:
"""Deletes a building.

Parameters:
building: The name of the building to delete.

Returns:
True if the building was deleted successfully, false otherwise.
"""

def rename_storey(building: str, storey: str, new_storey: str) -> bool:
"""Renames a storey in a building.

Parameters:
building: The name of the building.
storey: The current name of the storey.
new_storey: The new name for the storey.

Returns:
True if the storey was renamed successfully, false otherwise.
"""

def rename_building(building: str, new_building: str) -> bool:
"""Renames a building.

Parameters:
building: The current name of the building.
new_building: The new name for the building.

Returns:
True if the building was renamed successfully, false otherwise.
"""

def set_active_storey(building: str, storey: str) -> None:
"""Sets the active building and storey.

Parameters:
building: The name of the building.
storey: The name of the storey.
"""

def get_active_storey() -> str:
"""Gets the active storey.

Returns:
A string containing the active storey name.
"""

def get_active_building() -> str:
"""Gets the active building.

Returns:
A string containing the active building name.
"""

def get_finished_floor_thickness(building: str, storey: str) -> float:
"""Gets the finished floor thickness for a specific storey in a building.

Parameters:
building: The name of the building.
storey: The name of the storey.

Returns:
The finished floor thickness or -1.0 if not found.
"""

def set_finished_floor_thickness(building: str, storey: str, finished_floor_thickness: float) -> None:
"""Sets the finished floor thickness for a specific storey in a building.

Parameters:
building: The name of the building.
storey: The name of the storey.
finished_floor_thickness: The finished floor thickness to set.
"""

def get_elements_for_storey(building: str, storey: str) -> list[ElementId]:
"""Gets all elements assigned to a specific storey in a building.

Parameters:
building: The name of the building.
storey: The name of the storey.

Returns:
The list of element ids assigned to the storey.
"""
10 changes: 10 additions & 0 deletions src/geometry_controller/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -921,3 +921,13 @@ def get_standard_element_length_from_name(standard_element_name: str) -> float:
Returns:
The standard element length.
"""

def get_length_including_end_types(element_id: ElementId) -> float:
"""Gets the length of an element including end-types.

Parameters:
element_id: The element id.

Returns:
The element length including end-types.
"""
Loading