Skip to content

Commit

Permalink
Update menu controller, btl version, setup.py, text element type, sce…
Browse files Browse the repository at this point in the history
…ne controller, cadwork, material controller, visualization controller, text object options, ifc options, and attribute controller
  • Loading branch information
Brunner246 committed Mar 8, 2024
1 parent 5919e6a commit d9fadcc
Show file tree
Hide file tree
Showing 35 changed files with 3,076 additions and 1,680 deletions.
158 changes: 108 additions & 50 deletions docs/release.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='cwapi3d',
version='30.319.1',
version='30.319.2',
author='Cadwork',
author_email='[email protected]',
description='Python bindings for CwAPI3D',
Expand Down
37 changes: 37 additions & 0 deletions src/attribute_controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1599,3 +1599,40 @@ def set_framed_wall(element_id_list: List[int]) -> None:
None
"""

def delete_user_attribute(number: int) -> bool:
"""Delete user attribute from attribute list. The attribute is only deleted when the attribute is not used.
Args:
number ( int): number
Returns:
bool deletion successfully (bool)
"""


def set_framed_floor(element_id_list: List[int]) -> None:
"""Sets the elements to framed floor
Args:
element_id_list ( List[int]): element_id_list
Returns:
None
"""

def set_framed_roof(element_id_list: List[int]) -> None:
"""Sets the elements to framed roof
Args:
element_id_list ( List[int]): element_id_list
Returns:
None
"""

def get_name_list_items_by_element_type(a0: element_type) -> List[str]:
"""get name list items by element type
Args:
a0 ( element_type): a0
Returns:
List[str]
"""

45 changes: 42 additions & 3 deletions src/bim_controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def get_last_error(a0: int) -> str:
str
"""


def get_ifc_guid(element_id: int) -> str:
"""get ifc guid
Args:
Expand Down Expand Up @@ -85,7 +86,7 @@ def export_ifc(element_i_ds: List[int], file_path: str) -> bool:
"""

def import_ifc_return_exchange_objects(file_path: str) -> List[int]:
"""imports an IFC File and returns the ids of the Exchange Objects
"""imports an IFC File and returns the ids of the Exchange Objects
Args:
file_path ( str): file_path
Expand All @@ -105,7 +106,7 @@ def set_storey_height(building: str, storey: str, height: float) -> None:
"""

def convert_exchange_objects(exchange_objects: List[int]) -> List[int]:
"""converts a list of Exchange Objects to Cadwork Elements
"""converts a list of Exchange Objects to Cadwork Elements
Args:
exchange_objects ( List[int]): exchange_objects
Expand Down Expand Up @@ -217,7 +218,7 @@ def get_element_id_from_base64_ifc_guid(a1: str) -> int:
"""

def get_ifc_base64_guid(element_id: int) -> str:
"""Get IFC base64 Guid from element ID
"""Get IFC base64 Guid from element ID
Args:
element_id ( int): element_id
Expand Down Expand Up @@ -247,3 +248,41 @@ def export_ifc4_silently_with_options(element_i_ds: List[int], file_path: str, o
bool
"""


def update_bmt_structure(element_i_ds: List[int]) -> None:
"""Update the Tree Structure in the BIM-Management-Tool with the passed elements
Args:
element_i_ds ( List[int]): element_i_ds
Returns:
None
"""


def update_bmt_structure_created_elements(element_i_ds: List[int]) -> None:
"""This function takes the specified elements and inserts them into the BMT structure and adds them to the active building and storey.
Args:
element_i_ds ( List[int]): element_i_ds
Returns:
None
"""

def update_bmt_structure_building_storey(element_i_ds: List[int]) -> None:
"""This function takes the specified elements and inserts them into the BMT structure and adds them to the assigned Building and Storey.
Args:
element_i_ds ( List[int]): element_i_ds
Returns:
None
"""


def get_ifc_options() -> ifc_options:
"""Get the IfcOptions with the settings used in the document // *
Args:
Returns:
IfcOptions // (ifc_options)
"""

1 change: 1 addition & 0 deletions src/cadwork/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .ifc_options_level_of_detail import ifc_options_level_of_detail
from .ifc_options_project_data import ifc_options_project_data
from .ifc_options_properties import ifc_options_properties
from .import_3dc_options import import_3dc_options
from .layer_settings import layer_settings
from .node_symbol import node_symbol
from .point_3d import point_3d
Expand Down
2 changes: 0 additions & 2 deletions src/cadwork/btl_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class btl_version(IntEnum):
btlx_2_2 = 122
"""
# btl_1_0 = 110
# btl_1_1 = 111
btl_1_2 = 112
btl_1_3 = 113
btl_1_4 = 114
Expand Down
51 changes: 51 additions & 0 deletions src/cadwork/coordinate_system_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
from cadwork import point_3d

class coordinate_system_data:
def getP2(self) -> point_3d:
"""getP2
Args:
Returns:
point_3d
"""

def get_p2(self) -> point_3d:
"""get_p2
Args:
Returns:
point_3d
"""

def getP3(self) -> point_3d:
"""getP3
Args:
Returns:
point_3d
"""

def get_p3(self) -> point_3d:
"""get_p3
Args:
Returns:
point_3d
"""

def getP1(self) -> point_3d:
"""getP1
Args:
Returns:
point_3d
"""

def get_p1(self) -> point_3d:
"""get_p1
Args:
Returns:
point_3d
"""

Loading

0 comments on commit d9fadcc

Please sign in to comment.