BuildingElement
Script for BuildingElement
BuildingElement
Canonical path: BuildingElement.BuildingElement
Definition of class BuildingElement
data_column_width
property
writable
Get data column width
Returns:
-
int–data column width
geometry_expand
property
writable
Get geometry expand state
Returns:
-
bool–true/false state of geometry expand.
is_interactor
property
writable
Get the interactor state
Returns:
-
bool–true/false interactor state
pyp_file_name
property
writable
Get corresponding pyp file name
Returns:
-
str–name of the pyp file.
pyp_file_path
property
writable
Get corresponding pyp file path
Returns:
-
str–name of the pyp file path.
read_last_input
property
writable
Get read last input state
Returns:
-
bool–true/false state of read last input
script_name
property
writable
Get corresponding script name
Returns:
-
str–name of the script.
script_uuid
property
writable
Get the UUID of the pyp file
Returns:
-
str–UUID of the pyp file
show_favorite_buttons
property
writable
Get the show_favorite_button state
Returns:
-
bool–show_favorite_buttons state
skip_eval
property
writable
Get corresponding skip_eval
Returns:
-
bool–status fo skip_eval
title
property
writable
Get the property palette title
Returns:
-
str–property palette title
version
property
writable
Get the version number as string
Returns:
-
str–Version number
vs_multi_placement
property
writable
Get the VS multi placement state
Returns:
-
bool–true/false VS multi placement
vs_placement_point_input
property
writable
Get the VS placement point input state
Returns:
-
bool–true/false VS is placed by point input
PageData
dataclass
Canonical path: BuildingElement.BuildingElement.PageData
implementation of the page data class
add_constant
Add a new constant to class
Parameters:
-
name(str) –the name of the constant
-
value(Any) –the value of the constant
add_material_string_table
add_material_string_table(
global_material_str_table: BuildingElementMaterialStringTable,
)
Sets the global material string table
Parameters:
-
global_material_str_table(BuildingElementMaterialStringTable) –global material string table
add_page
Add pages for property dialog
Parameters:
-
name(str) –the name of the page.
-
text(str) –text of the page
-
visible_condition(str) –visible condition of the page
-
enable_condition(str) –enable condition of the page
add_property
add_property(name: str, value: ParameterProperty)
Add a new property to class
Parameters:
-
name(str) –the name of the property.
-
value(ParameterProperty) –the value of the property.
add_string_tables
add_string_tables(
local_str_table: BuildingElementStringTable,
global_str_table: BuildingElementStringTable,
)
Sets the local and global string table
Parameters:
-
local_str_table(BuildingElementStringTable) –local string table
-
global_str_table(BuildingElementStringTable) –global string table
change_property
change_property(handle_prop: HandleProperties, input_pnt: Point3D) -> bool
Change property value
Parameters:
-
handle_prop(HandleProperties) –handle property
-
input_pnt(Point3D) –input point
Returns:
-
bool–update palette state
deep_copy
deep_copy() -> BuildingElement
get_constant
get the constant by name
Parameters:
-
name(str) –name of the constant
Returns:
-
Any < None–constant value, None if not exist
get_constant_dict
Get constants dictionary
Returns:
-
dict[str, Any]–dictionary of constants
get_existing_property
get_existing_property(name: str) -> ParameterProperty
Get a mandatory property parameter by name. If the property doesn't exist, a message box is shown and an exception is thrown
Parameters:
-
name(str) –the name of the property.
Returns:
-
ParameterProperty–property
Raises:
-
ValueError–raised in case of missing parameter
get_float_version
Get the version as float number from the string
Returns:
-
float–version number as float value
get_hash
Calculate a hash value for script name and parameter list
Returns:
-
str–Calculated hash string.
get_insert_matrix
get_insert_matrix() -> Matrix3D
get_material_string_table
get_material_string_table() -> BuildingElementMaterialStringTable
Get the global material string table
Returns:
-
BuildingElementMaterialStringTable–global material string table
get_model_parameter_dict
get_model_parameter_dict(
exclude_identical: bool = False,
) -> dict[str, ParameterProperty]
Get parameters dictionary for the model parameter
Parameters:
-
exclude_identical(bool, default:False) –exclude the parameter which should not be used for the identical check
Returns:
-
dict[str, ParameterProperty]–dictionary of parameters.
get_modified_properties
get_modified_properties() -> Iterator[ParameterProperty]
Get an iterator for the modified properties
Yield
property iterator of the modified properties
get_pages
get_pages() -> list[PageData]
get_parameter_dict
Get parameters dictionary
Returns:
-
dict[str, Any]–dictionary of parameters.
get_params_list
Get the list with the parameter values
Returns:
-
list[str]–list with the parameter values
get_properties
get_properties() -> Iterator[ParameterProperty]
Get an iterator for the properties
Yield
property iterator
get_property
get_property(name: str) -> ParameterProperty | None
Get property parameter by name
Parameters:
-
name(str) –the name of the property.
Returns:
-
ParameterProperty | None–property parameter, None if not exist
get_reinforcement_definition_list
Get reinforcement list
Returns:
-
list[ReinforcementDefinition]–list of reinforcement.
get_string_tables
get_string_tables() -> (
tuple[BuildingElementStringTable, BuildingElementStringTable]
)
Get the local and global string tables
Returns:
-
tuple[BuildingElementStringTable, BuildingElementStringTable]–tuple of local and global string table
is_parameter_property
staticmethod
Check for a parameter property
Parameters:
-
name(str) –name of the parameter property
Returns:
-
bool–name has parameter property
modify_value_type
Modify the value of a value type
Parameters:
-
value_type(str) –Value type
-
value(Any) –Value
reset_page
Reset pages for property dialog
Parameters:
-
name(str) –the name of the page.
-
text(str) –text of the page
-
visible_condition(str) –visible condition
-
enable_condition(str) –enable condition
set_insert_matrix
set_insert_matrix(matrix: Matrix3D)
set_property
Set property value by name
Parameters:
-
name(str) –the name of the property.
-
value(Any) –new value of the property.