Building Element Service
Class full path: BuildingElementService.BuildingElementService
Definition of class BuildingElementService
Functions
read_data_from_pyp(file_name, str_table, is_library_preview, material_str_table, sub_file_name='', init_with_last_input=True, add_sub_file_name='')
staticmethod
Read the data from the pyp file and check the version
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_name
|
str
|
Name of the pyp file |
required |
str_table
|
BuildingElementStringTable
|
String table |
required |
is_library_preview
|
bool
|
Called for library preview |
required |
material_str_table
|
BuildingElementMaterialStringTable
|
Material string table |
required |
sub_file_name
|
str
|
File with the sub elements |
''
|
init_with_last_input
|
bool
|
Initialize with the data from the last input (only if ReadLastInput is set in the script) |
True
|
add_sub_file_name
|
str
|
additional sub file |
''
|
Returns:
Type | Description |
---|---|
Tuple[Optional[bool], Optional[Any], List[BuildingElement], List[BuildingElementControlProperties], BuildingElementComposite, str, str]
|
tuple with the data read from the pyp file |
write_data_to_default_favorite_file(build_ele_list)
staticmethod
Write the data to the default favorite file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
build_ele_list
|
List[BuildingElement]
|
Building element list |
required |