BuildingElementComposite
Implementation of the build element composite
BuildingElementComposite
Canonical path: BuildingElementComposite.BuildingElementComposite
Bases: BuildingElementCompositeData
Implementation of class BuildingElementComposite
connect_building_element_values
connect_building_element_values(
build_ele_list: list[BuildingElement],
end_index: int = -1,
check_modified: bool = True,
) -> bool
Connect the values of the building element from the element data
Return: the connection is modified: True/False
Parameters:
-
build_ele_list
(list[BuildingElement]
) –Building element list
-
end_index
(int
, default:-1
) –end index
-
check_modified
(bool
, default:True
) –check modified state
Returns:
-
bool
–modified state
get_build_ele_index
get the index of the building element by the ID
Parameters:
-
build_ele_id
(str
) –id fo find
Returns:
-
int
–index of the ID
get_composite_build_ele_list
get_composite_build_ele_list(
sub_ele_index: int, build_ele_list: list[BuildingElement]
) -> tuple[list[BuildingElement], list[int]]
Get a tuple with the - list with the sub building elements - list with the indices of the sub building elements
Parameters:
-
sub_ele_index
(int
) –Index of the sub element
-
build_ele_list
(list[BuildingElement]
) –list with the building elements
Returns:
-
tuple[list[BuildingElement], list[int]]
–tuple with the lists
get_element_palette_data
Set the palette data for the element (control index, page text, expander text)
Parameters:
-
element_id
(str
) –element ID
Returns:
-
PaletteData
–palette data
get_script
Get the script of the sub element
Return: script
Parameters:
-
sub_ele_index
(int
) –Index of the sub element
Returns:
-
object
–script name
get_sub_element_name
Get the name of the sub element
Return: name
Parameters:
-
sub_ele_index
(int
) –Index of the sub element
Returns:
-
str
–sub element name
get_values_from_list
staticmethod
get the values from a list
Parameters:
-
value_list
(list[Any]
) –value list
-
sub_name
(str
) –sub value name
Returns:
-
list[Any]
–value
is_element_visible
is_element_visible(
ele_index: int, build_ele_list: list[BuildingElement]
) -> bool
Check for a visible element
Return: the element is visible: True/False
Parameters:
-
ele_index
(int
) –element index
-
build_ele_list
(list[BuildingElement]
) –Building element list
Returns:
-
bool
–element visible state
set_connection_persistence
set_connection_persistence(build_ele_list: list[BuildingElement])
Set the persistence for the connected parameter
Parameters:
-
build_ele_list
(list[BuildingElement]
) –building element list