diff --git a/pyproject.toml b/pyproject.toml index fd32665..c2d2fb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "cwapi3d" -version = "32.443.4" +version = "32.443.5" authors = [{ name = "Cadwork", email = "it@cadwork.ca" }] requires-python = ">= 3.12" description = 'Python bindings for CwAPI3D' diff --git a/src/attribute_controller/__init__.pyi b/src/attribute_controller/__init__.pyi index 5b947a4..d072d71 100644 --- a/src/attribute_controller/__init__.pyi +++ b/src/attribute_controller/__init__.pyi @@ -1,4 +1,6 @@ from typing import List + +from cadwork.api_types import * from cadwork.attribute_display_settings import attribute_display_settings from cadwork.element_grouping_type import element_grouping_type from cadwork.element_type import element_type @@ -6,7 +8,7 @@ from cadwork.extended_settings import extended_settings from cadwork.layer_settings import layer_settings from cadwork.node_symbol import node_symbol from cadwork.process_type import process_type -from cadwork.api_types import * + def set_name(element_id_list: List[ElementId], name: str) -> None: """Sets the element name. @@ -16,6 +18,7 @@ def set_name(element_id_list: List[ElementId], name: str) -> None: name: The element name. """ + def set_group(element_id_list: List[ElementId], group: str) -> None: """Sets the element group. @@ -24,6 +27,7 @@ def set_group(element_id_list: List[ElementId], group: str) -> None: group: The element group. """ + def set_subgroup(element_id_list: List[ElementId], subgroup: str) -> None: """Sets the element subgroup. @@ -32,6 +36,7 @@ def set_subgroup(element_id_list: List[ElementId], subgroup: str) -> None: subgroup: The element subgroup. """ + def set_comment(element_id_list: List[ElementId], comment: str) -> None: """Sets the element comment. @@ -40,6 +45,7 @@ def set_comment(element_id_list: List[ElementId], comment: str) -> None: comment: The element comment. """ + def set_user_attribute(element_id_list: List[ElementId], number: UserAttributeId, user_attribute: str) -> None: """Sets the element user attribute. @@ -49,6 +55,7 @@ def set_user_attribute(element_id_list: List[ElementId], number: UserAttributeId user_attribute: The user attribute. """ + def set_sku(element_id_list: List[ElementId], sku: str) -> None: """Sets the element SKU. @@ -57,6 +64,7 @@ def set_sku(element_id_list: List[ElementId], sku: str) -> None: sku: The element SKU. """ + def set_production_number(element_id_list: List[ElementId], production_number: UnsignedInt) -> None: """Sets the element production number. @@ -65,6 +73,7 @@ def set_production_number(element_id_list: List[ElementId], production_number: U production_number: The element production number. """ + def set_part_number(element_id_list: List[ElementId], part_number: UnsignedInt) -> None: """Sets the element part number. @@ -73,6 +82,7 @@ def set_part_number(element_id_list: List[ElementId], part_number: UnsignedInt) part_number: The element part number. """ + def set_additional_data(element_id_list: List[ElementId], data_id: str, data_text: str) -> None: """Sets the element additional data. @@ -82,6 +92,7 @@ def set_additional_data(element_id_list: List[ElementId], data_id: str, data_tex data_text: The element additional data. """ + def delete_additional_data(element_id_list: List[ElementId], data_id: str) -> None: """Deletes the element additional data. @@ -90,6 +101,7 @@ def delete_additional_data(element_id_list: List[ElementId], data_id: str) -> No data_id: The data id. """ + def set_user_attribute_name(number: UserAttributeId, user_attribute_name: str) -> None: """Sets the user attribute name. @@ -98,6 +110,7 @@ def set_user_attribute_name(number: UserAttributeId, user_attribute_name: str) - user_attribute_name: The user attribute name. """ + def set_process_type_and_extended_settings_from_name(element_id_list: List[ElementId]) -> None: """Sets the element process type and extended settings from the element name. @@ -105,6 +118,7 @@ def set_process_type_and_extended_settings_from_name(element_id_list: List[Eleme element_id_list: The element id list. """ + def set_name_process_type(name: str, process_type: process_type) -> None: """Sets the process type for an element name. @@ -113,6 +127,7 @@ def set_name_process_type(name: str, process_type: process_type) -> None: process_type: The process type. """ + def set_name_extended_settings(name: str, extended_settings: extended_settings) -> None: """Sets the extended settings for an element name. @@ -121,6 +136,7 @@ def set_name_extended_settings(name: str, extended_settings: extended_settings) extended_settings: The extended settings. """ + def set_output_type(element_id_list: List[ElementId], process_type: process_type) -> None: """Sets the element output type. @@ -129,6 +145,7 @@ def set_output_type(element_id_list: List[ElementId], process_type: process_type process_type: The process type. """ + def set_extended_settings(element_id_list: List[ElementId], extended_settings: extended_settings) -> None: """Sets the element extended settings. @@ -137,6 +154,7 @@ def set_extended_settings(element_id_list: List[ElementId], extended_settings: e extended_settings: The extended settings. """ + def set_wall(element_id_list: List[ElementId]) -> None: """Sets the element to wall. @@ -158,6 +176,7 @@ def set_floor(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_opening(element_id_list: List[ElementId]) -> None: """Sets the element to opening. @@ -165,6 +184,7 @@ def set_opening(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_fastening_attribute(element_id_list: List[ElementId], value: str) -> None: """Sets the element fastening attribute. @@ -173,6 +193,7 @@ def set_fastening_attribute(element_id_list: List[ElementId], value: str) -> Non value: The fastening attribute value. """ + def set_element_material(element_id_list: List[ElementId], material: MaterialId) -> None: """Sets the element material. @@ -181,6 +202,7 @@ def set_element_material(element_id_list: List[ElementId], material: MaterialId) material: The element material id. """ + def set_assembly_number(element_id_list: List[ElementId], assembly_number: str) -> None: """set assembly number. @@ -189,6 +211,7 @@ def set_assembly_number(element_id_list: List[ElementId], assembly_number: str) assembly_number: The assembly number. """ + def set_list_quantity(element_id_list: List[ElementId], list_quantity: UnsignedInt) -> None: """Set list quantity. @@ -197,6 +220,7 @@ def set_list_quantity(element_id_list: List[ElementId], list_quantity: UnsignedI list_quantity: The list quantity. """ + def set_layer_settings(element_id_list: List[ElementId], layer_settings: layer_settings) -> None: """Set layer settings. @@ -205,6 +229,7 @@ def set_layer_settings(element_id_list: List[ElementId], layer_settings: layer_s layer_settings: The layer settings. """ + def set_ignore_in_vba_calculation(element_id_list: List[ElementId], ignore: bool) -> None: """Sets if the element should be ignored in VBA Calculation. @@ -213,10 +238,12 @@ def set_ignore_in_vba_calculation(element_id_list: List[ElementId], ignore: bool ignore: True if the element should be ignored in VBA calculation, false otherwise. """ + def clear_errors() -> None: """clear all errors. """ + def set_reference_wall_2dc(element_id_list: List[ElementId], _2dc_file_path: str) -> None: """Applies a new 2dc reference wall to an element. @@ -225,6 +252,7 @@ def set_reference_wall_2dc(element_id_list: List[ElementId], _2dc_file_path: str _2dc_file_path: The 2dc file path. """ + def get_user_attribute_count() -> UnsignedInt: """Get user attribute count. @@ -232,6 +260,7 @@ def get_user_attribute_count() -> UnsignedInt: The count of user attributes. """ + def set_standard_part(element_id_list: List[ElementId]) -> None: """Sets covers (wall,opening or floor) to standard part. @@ -239,6 +268,7 @@ def set_standard_part(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_solid_wall(element_id_list: List[ElementId]) -> None: """Sets elements to solid wall. @@ -246,6 +276,7 @@ def set_solid_wall(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_log_wall(element_id_list: List[ElementId]) -> None: """Sets elements to log wall. @@ -253,6 +284,7 @@ def set_log_wall(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_solid_floor(element_id_list: List[ElementId]) -> None: """Sets elements to solid floor. @@ -271,6 +303,7 @@ def set_roof(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_solid_roof(element_id_list: List[ElementId]) -> None: """Sets elements to solid roof cover. @@ -278,6 +311,7 @@ def set_solid_roof(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def get_node_symbol(element_id: ElementId) -> node_symbol: """Get node symbol. @@ -288,6 +322,7 @@ def get_node_symbol(element_id: ElementId) -> node_symbol: The node symbol of the element. """ + def set_node_symbol(element_id_list: List[ElementId], symbol: node_symbol) -> None: """Set node symbol. @@ -296,14 +331,17 @@ def set_node_symbol(element_id_list: List[ElementId], symbol: node_symbol) -> No symbol: The node symbol. """ + def enable_attribute_display() -> None: """Enable attribute display. """ + def disable_attribute_display() -> None: """Disable attribute display. """ + def is_attribute_display_enabled() -> bool: """Is attribute display enabled. @@ -311,6 +349,7 @@ def is_attribute_display_enabled() -> bool: True if attribute display is enabled, false otherwise. """ + def update_auto_attribute() -> None: """Update the auto attribute. """ @@ -325,6 +364,7 @@ def set_additional_guid(element_id_list: List[ElementId], data_id: str, guid: st guid: The guid to set. """ + def add_item_to_group_list(item: str) -> None: """Add item to group list. @@ -340,6 +380,7 @@ def add_item_to_subgroup_list(item: str) -> None: item: The item to add in the subgroup list. """ + def add_item_to_comment_list(item: str) -> None: """Add item to comment list. @@ -373,6 +414,7 @@ def set_container_number(element_id_list: List[ElementId], number: UnsignedInt) number: The container number. """ + def get_name_list_items() -> List[str]: """Retrieve a list of name for all items @@ -492,6 +534,7 @@ def set_attribute_display_settings_for_container(settings: attribute_display_set settings: The display settings to apply. """ + def set_attribute_display_settings_for_export_solid(settings: attribute_display_settings) -> None: """Set attribute display settings for export solid. @@ -571,6 +614,7 @@ def set_attribute_display_settings_for_log_wall_panel(settings: attribute_displa settings: The display settings to apply. """ + def set_attribute_display_settings_for_machine(settings: attribute_display_settings) -> None: """Set attribute display settings for machine. @@ -626,6 +670,7 @@ def set_attribute_display_settings_for_solid_wall_panel(settings: attribute_disp settings: The display settings to apply. """ + def set_framed_floor(element_id_list: List[ElementId]) -> None: """Sets the elements to framed floor. @@ -633,6 +678,7 @@ def set_framed_floor(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_framed_roof(element_id_list: List[ElementId]) -> None: """Sets the elements to framed roof. @@ -640,6 +686,7 @@ def set_framed_roof(element_id_list: List[ElementId]) -> None: element_id_list: The element id list. """ + def set_framed_wall(element_id_list: List[ElementId]) -> None: """Sets the element to framed wall. @@ -658,6 +705,7 @@ def get_name_list_items_by_element_type(element_type: element_type) -> List[str] The list of names for the specified element type. """ + def get_name(element_id: ElementId) -> str: """Gets the element name. @@ -668,6 +716,7 @@ def get_name(element_id: ElementId) -> str: The element name. """ + def get_group(element_id: ElementId) -> str: """Gets the element group. @@ -678,6 +727,7 @@ def get_group(element_id: ElementId) -> str: The element group. """ + def get_subgroup(element_id: ElementId) -> str: """Gets the element subgroup. @@ -688,6 +738,7 @@ def get_subgroup(element_id: ElementId) -> str: The element subgroup. """ + def get_comment(element_id: ElementId) -> str: """Gets the element comment. @@ -698,6 +749,7 @@ def get_comment(element_id: ElementId) -> str: The element comment. """ + def get_user_attribute(element_id: ElementId, number: UserAttributeId) -> str: """Gets the element user attribute. @@ -709,6 +761,7 @@ def get_user_attribute(element_id: ElementId, number: UserAttributeId) -> str: The element user attribute. """ + def get_sku(element_id: ElementId) -> str: """Gets the element SKU. @@ -719,6 +772,7 @@ def get_sku(element_id: ElementId) -> str: The element SKU. """ + def get_production_number(element_id: ElementId) -> UnsignedInt: """Gets the element production number. @@ -729,6 +783,7 @@ def get_production_number(element_id: ElementId) -> UnsignedInt: The element production number. """ + def get_part_number(element_id: ElementId) -> UnsignedInt: """Gets the element part number. @@ -739,6 +794,7 @@ def get_part_number(element_id: ElementId) -> UnsignedInt: The element part number. """ + def get_additional_data(element_id: ElementId, data_id: str) -> str: """Gets the element additional data. @@ -750,6 +806,7 @@ def get_additional_data(element_id: ElementId, data_id: str) -> str: The element additional data. """ + def get_user_attribute_name(number: UserAttributeId) -> str: """Gets the user attribute name. @@ -760,6 +817,7 @@ def get_user_attribute_name(number: UserAttributeId) -> str: The user attribute name. """ + def get_wall_situation(element_id: ElementId) -> str: """Gets the element wall situation. @@ -770,6 +828,7 @@ def get_wall_situation(element_id: ElementId) -> str: The element wall situation. """ + def get_element_material_name(element_id: ElementId) -> str: """Gets the element material name. @@ -780,6 +839,7 @@ def get_element_material_name(element_id: ElementId) -> str: The element material name. """ + def get_prefab_layer(element_id: ElementId) -> str: """Gets the element prefab layer. @@ -790,6 +850,7 @@ def get_prefab_layer(element_id: ElementId) -> str: The element prefab layer. """ + def get_machine_calculation_set(element_id: ElementId) -> str: """Gets the element machine calculation set. @@ -800,6 +861,7 @@ def get_machine_calculation_set(element_id: ElementId) -> str: The element machine calculation set. """ + def get_cutting_set(element_id: ElementId) -> str: """Gets the element cutting set. @@ -810,6 +872,7 @@ def get_cutting_set(element_id: ElementId) -> str: The element cutting set. """ + def get_name_process_type(name: str) -> process_type: """Gets the process type for an element name. @@ -820,6 +883,7 @@ def get_name_process_type(name: str) -> process_type: The process type. """ + def get_name_extended_settings(name: str) -> extended_settings: """Gets the extended settings for an element name. @@ -830,6 +894,7 @@ def get_name_extended_settings(name: str) -> extended_settings: The extended settings. """ + def get_output_type(element_id: ElementId) -> process_type: """Gets the element output type. @@ -840,6 +905,7 @@ def get_output_type(element_id: ElementId) -> process_type: The element output type. """ + def get_extended_settings(element_id: ElementId) -> extended_settings: """Gets the element extended settings. @@ -850,6 +916,7 @@ def get_extended_settings(element_id: ElementId) -> extended_settings: The element extended settings. """ + def get_element_type(element_id: ElementId) -> element_type: """Gets the element type. @@ -860,6 +927,7 @@ def get_element_type(element_id: ElementId) -> element_type: The element type. """ + def get_fastening_attribute(element_id: ElementId) -> str: """Get the element fastening attribute. @@ -870,6 +938,7 @@ def get_fastening_attribute(element_id: ElementId) -> str: The element fastening attribute. """ + def get_assembly_number(element_id: ElementId) -> str: """Get assembly number. @@ -880,6 +949,7 @@ def get_assembly_number(element_id: ElementId) -> str: The assembly number. """ + def get_list_quantity(element_id: ElementId) -> UnsignedInt: """Get list quantity. @@ -890,6 +960,7 @@ def get_list_quantity(element_id: ElementId) -> UnsignedInt: The list quantity. """ + def get_ignore_in_vba_calculation(element_id: ElementId) -> bool: """Get ignore in vba calculation. @@ -900,6 +971,7 @@ def get_ignore_in_vba_calculation(element_id: ElementId) -> bool: True if the element is ignored in VBA calculation, false otherwise. """ + def get_standard_element_name(element_id: ElementId) -> str: """Get standard element name. @@ -910,6 +982,7 @@ def get_standard_element_name(element_id: ElementId) -> str: The standard element name. """ + def get_steel_shape_name(element_id: ElementId) -> str: """Get steel shape name. @@ -920,6 +993,7 @@ def get_steel_shape_name(element_id: ElementId) -> str: The steel shape name. """ + def is_beam(element_id: ElementId) -> bool: """Tests if element is beam. @@ -930,6 +1004,7 @@ def is_beam(element_id: ElementId) -> bool: True if the element is a beam, false otherwise. """ + def is_panel(element_id: ElementId) -> bool: """Tests if element is panel. @@ -940,6 +1015,7 @@ def is_panel(element_id: ElementId) -> bool: True if the element is a panel, false otherwise. """ + def is_opening(element_id: ElementId) -> bool: """Tests if element is opening. @@ -950,6 +1026,7 @@ def is_opening(element_id: ElementId) -> bool: True if the element is an opening, false otherwise. """ + def is_wall(element_id: ElementId) -> bool: """Tests if element is wall. @@ -960,6 +1037,7 @@ def is_wall(element_id: ElementId) -> bool: True if the element is a wall, false otherwise. """ + def is_floor(element_id: ElementId) -> bool: """Tests if element is floor. @@ -970,6 +1048,7 @@ def is_floor(element_id: ElementId) -> bool: True if the element is a floor, false otherwise. """ + def is_roof(element_id: ElementId) -> bool: """Tests if element is roof. @@ -980,6 +1059,7 @@ def is_roof(element_id: ElementId) -> bool: True if the element is a roof, false otherwise. """ + def is_metal(element_id: ElementId) -> bool: """Tests if element is metal. @@ -990,6 +1070,7 @@ def is_metal(element_id: ElementId) -> bool: True if the element is metal, false otherwise. """ + def is_export_solid(element_id: ElementId) -> bool: """Tests if element is export solid. @@ -1000,6 +1081,7 @@ def is_export_solid(element_id: ElementId) -> bool: True if the element is an export solid, false otherwise. """ + def is_container(element_id: ElementId) -> bool: """Tests if element is container. @@ -1010,6 +1092,7 @@ def is_container(element_id: ElementId) -> bool: True if the element is a container, false otherwise. """ + def is_connector_axis(element_id: ElementId) -> bool: """Tests if element is connector axis. @@ -1020,6 +1103,7 @@ def is_connector_axis(element_id: ElementId) -> bool: True if the element is a connector axis, false otherwise. """ + def is_drilling(element_id: ElementId) -> bool: """Tests if element is drilling. @@ -1030,6 +1114,7 @@ def is_drilling(element_id: ElementId) -> bool: True if the element is drilling, false otherwise. """ + def is_node(element_id: ElementId) -> bool: """Tests if element is node. @@ -1040,6 +1125,7 @@ def is_node(element_id: ElementId) -> bool: True if the element is a node, false otherwise. """ + def is_auxiliary(element_id: ElementId) -> bool: """Tests if element is auxiliary. @@ -1050,6 +1136,7 @@ def is_auxiliary(element_id: ElementId) -> bool: True if the element is auxiliary, false otherwise. """ + def is_roof_surface(element_id: ElementId) -> bool: """Tests if the element is roof surface. @@ -1060,6 +1147,7 @@ def is_roof_surface(element_id: ElementId) -> bool: True if the element is a roof surface, false otherwise. """ + def is_caddy_object(element_id: ElementId) -> bool: """Tests if the element is caddy object. @@ -1070,6 +1158,7 @@ def is_caddy_object(element_id: ElementId) -> bool: True if the element is a caddy object, false otherwise. """ + def is_envelope(element_id: ElementId) -> bool: """Tests if the element is an envelope. @@ -1080,6 +1169,7 @@ def is_envelope(element_id: ElementId) -> bool: True if the element is an envelope, false otherwise. """ + def is_architecture_wall_2dc(element_id: ElementId) -> bool: """Tests if the element is a 2dc reference wall. @@ -1090,6 +1180,7 @@ def is_architecture_wall_2dc(element_id: ElementId) -> bool: True if the element is a 2dc reference wall, false otherwise. """ + def is_architecture_wall_xml(element_id: ElementId) -> bool: """Tests if the element is a xml reference wall. @@ -1100,6 +1191,7 @@ def is_architecture_wall_xml(element_id: ElementId) -> bool: True if the element is a xml reference wall, false otherwise. """ + def is_surface(element_id: ElementId) -> bool: """Tests if the element is a Surface. @@ -1110,6 +1202,7 @@ def is_surface(element_id: ElementId) -> bool: True if the element is a Surface, false otherwise. """ + def is_line(element_id: ElementId) -> bool: """Tests if the element is a Line. @@ -1120,6 +1213,7 @@ def is_line(element_id: ElementId) -> bool: True if the element is a Line, false otherwise. """ + def get_auto_attribute(element_id: ElementId, number: UnsignedInt) -> str: """Get auto attribute. @@ -1131,6 +1225,7 @@ def get_auto_attribute(element_id: ElementId, number: UnsignedInt) -> str: The auto attribute value. """ + def get_auto_attribute_name(number: UnsignedInt) -> str: """Get auto attribute name. @@ -1141,6 +1236,7 @@ def get_auto_attribute_name(number: UnsignedInt) -> str: The auto attribute name. """ + def is_framed_wall(element_id: ElementId) -> bool: """Tests if the element is a framed wall. @@ -1151,6 +1247,7 @@ def is_framed_wall(element_id: ElementId) -> bool: True if the element is a framed wall, false otherwise. """ + def is_solid_wall(element_id: ElementId) -> bool: """Tests if the element is a solid wall. @@ -1161,6 +1258,7 @@ def is_solid_wall(element_id: ElementId) -> bool: True if the element is a solid wall, false otherwise. """ + def is_log_wall(element_id: ElementId) -> bool: """Tests if the element is a log wall. @@ -1171,6 +1269,7 @@ def is_log_wall(element_id: ElementId) -> bool: True if the element is a log wall, false otherwise. """ + def is_framed_floor(element_id: ElementId) -> bool: """Tests if the element is a framed floor. @@ -1181,6 +1280,7 @@ def is_framed_floor(element_id: ElementId) -> bool: True if the element is a framed floor, false otherwise. """ + def is_solid_floor(element_id: ElementId) -> bool: """Tests if the element is a solid floor. @@ -1191,6 +1291,7 @@ def is_solid_floor(element_id: ElementId) -> bool: True if the element is a solid floor, false otherwise. """ + def is_framed_roof(element_id: ElementId) -> bool: """Tests if the element is a framed roof. @@ -1201,6 +1302,7 @@ def is_framed_roof(element_id: ElementId) -> bool: True if the element is a framed roof, false otherwise. """ + def is_solid_roof(element_id: ElementId) -> bool: """Tests if the element is a solid roof. @@ -1300,6 +1402,7 @@ def get_container_number_with_prefix(element_id: ElementId) -> str: The container number with prefix associated with the element. """ + def get_group_list_items() -> List[str]: """Get group list items. @@ -1307,6 +1410,7 @@ def get_group_list_items() -> List[str]: The list of group list items. """ + def get_subgroup_list_items() -> List[str]: """Get subgroup list items. @@ -1314,6 +1418,7 @@ def get_subgroup_list_items() -> List[str]: The list of subgroup list items. """ + def get_comment_list_items() -> List[str]: """Get comment list items. @@ -1321,6 +1426,7 @@ def get_comment_list_items() -> List[str]: The list of comment list items. """ + def get_sku_list_items() -> List[str]: """Get sku list items. @@ -1361,6 +1467,7 @@ def is_rectangular_mep(element_id: ElementId) -> bool: True if the element is a rectangular mep, false otherwise. """ + def get_machine_calculation_state(element_id: ElementId) -> str: """Get machine calculation state. @@ -1382,6 +1489,7 @@ def get_machine_calculation_set_machine_type(element_id: ElementId) -> str: The machine calculation set machine type of the element. """ + def is_btl_processing_group(element_id: ElementId) -> bool: """Test if element is btl processing group. @@ -1392,6 +1500,7 @@ def is_btl_processing_group(element_id: ElementId) -> bool: True if the element is a btl processing group, false otherwise. """ + def is_hundegger_processing_group(element_id: ElementId) -> bool: """Test if element is hundegger processing group. @@ -1402,6 +1511,7 @@ def is_hundegger_processing_group(element_id: ElementId) -> bool: True if the element is a hundegger processing group, false otherwise. """ + def get_element_grouping_type() -> element_grouping_type: """Get the element grouping type (group, subgroup). @@ -1409,6 +1519,7 @@ def get_element_grouping_type() -> element_grouping_type: The element grouping type. """ + def set_element_grouping_type(element_grouping_type: element_grouping_type) -> None: """Set the element grouping type (group, subgroup). @@ -1416,6 +1527,7 @@ def set_element_grouping_type(element_grouping_type: element_grouping_type) -> N element_grouping_type: The element grouping type to set. """ + def get_associated_nesting_name(element_id: ElementId) -> str: """Get associated nesting name @@ -1426,6 +1538,7 @@ def get_associated_nesting_name(element_id: ElementId) -> str: The associated nesting name. """ + def get_associated_nesting_number(element_id: ElementId) -> str: """Get associated nesting number. @@ -1436,6 +1549,7 @@ def get_associated_nesting_number(element_id: ElementId) -> str: The associated nesting number. """ + def get_attribute_display_settings_for_2d() -> attribute_display_settings: """Get attribute display settings for 2d. @@ -1443,6 +1557,7 @@ def get_attribute_display_settings_for_2d() -> attribute_display_settings: The attribute display settings for 2d. """ + def get_attribute_display_settings_for_2d_with_layout() -> attribute_display_settings: """Get attribute display settings for 2d with layout. @@ -1450,6 +1565,7 @@ def get_attribute_display_settings_for_2d_with_layout() -> attribute_display_set The attribute display settings for 2d with layout. """ + def get_attribute_display_settings_for_2d_without_layout() -> attribute_display_settings: """Get attribute display settings for 2d without layout. @@ -1457,6 +1573,7 @@ def get_attribute_display_settings_for_2d_without_layout() -> attribute_display_ The attribute display settings for 2d without layout. """ + def get_attribute_display_settings_for_3d() -> attribute_display_settings: """Get attribute display settings for 3d. @@ -1464,6 +1581,7 @@ def get_attribute_display_settings_for_3d() -> attribute_display_settings: The attribute display settings for 3d. """ + def get_attribute_display_settings_for_container() -> attribute_display_settings: """Get attribute display settings for container. @@ -1471,6 +1589,7 @@ def get_attribute_display_settings_for_container() -> attribute_display_settings The attribute display settings for container. """ + def get_attribute_display_settings_for_export_solid() -> attribute_display_settings: """Get attribute display settings for export solid. @@ -1478,6 +1597,7 @@ def get_attribute_display_settings_for_export_solid() -> attribute_display_setti The attribute display settings for export solid. """ + def get_attribute_display_settings_for_framed_wall_axis() -> attribute_display_settings: """Get attribute display settings for framed wall axis. @@ -1485,6 +1605,7 @@ def get_attribute_display_settings_for_framed_wall_axis() -> attribute_display_s The attribute display settings for framed wall axis. """ + def get_attribute_display_settings_for_framed_wall_beam() -> attribute_display_settings: """Get attribute display settings for framed wall beam. @@ -1492,6 +1613,7 @@ def get_attribute_display_settings_for_framed_wall_beam() -> attribute_display_s The attribute display settings for framed wall beam. """ + def get_attribute_display_settings_for_framed_wall_opening() -> attribute_display_settings: """Get attribute display settings for framed wall opening. @@ -1499,6 +1621,7 @@ def get_attribute_display_settings_for_framed_wall_opening() -> attribute_displa The attribute display settings for framed wall opening. """ + def get_attribute_display_settings_for_framed_wall_panel() -> attribute_display_settings: """Get attribute display settings for framed wall panel. @@ -1506,6 +1629,7 @@ def get_attribute_display_settings_for_framed_wall_panel() -> attribute_display_ The attribute display settings for framed wall panel. """ + def get_attribute_display_settings_for_log_wall_axis() -> attribute_display_settings: """Get attribute display settings for log wall axis. @@ -1513,6 +1637,7 @@ def get_attribute_display_settings_for_log_wall_axis() -> attribute_display_sett The attribute display settings for log wall axis. """ + def get_attribute_display_settings_for_log_wall_beam() -> attribute_display_settings: """Get attribute display settings for log wall beam. @@ -1520,6 +1645,7 @@ def get_attribute_display_settings_for_log_wall_beam() -> attribute_display_sett The attribute display settings for log wall beam. """ + def get_attribute_display_settings_for_log_wall_opening() -> attribute_display_settings: """Get attribute display settings for log wall opening. @@ -1527,6 +1653,7 @@ def get_attribute_display_settings_for_log_wall_opening() -> attribute_display_s The attribute display settings for log wall opening. """ + def get_attribute_display_settings_for_log_wall_panel() -> attribute_display_settings: """Get attribute display settings for log wall panel. @@ -1534,6 +1661,7 @@ def get_attribute_display_settings_for_log_wall_panel() -> attribute_display_set The attribute display settings for log wall panel. """ + def get_attribute_display_settings_for_machine() -> attribute_display_settings: """Get attribute display settings for machine. @@ -1541,6 +1669,7 @@ def get_attribute_display_settings_for_machine() -> attribute_display_settings: The attribute display settings for machine. """ + def get_attribute_display_settings_for_nesting_element() -> attribute_display_settings: """Get attribute display settings for nesting element. @@ -1548,6 +1677,7 @@ def get_attribute_display_settings_for_nesting_element() -> attribute_display_se The attribute display settings for nesting element. """ + def get_attribute_display_settings_for_nesting_volume() -> attribute_display_settings: """Get attribute display settings for nesting volume. @@ -1555,6 +1685,7 @@ def get_attribute_display_settings_for_nesting_volume() -> attribute_display_set The attribute display settings for nesting volume. """ + def get_attribute_display_settings_for_solid_wall_axis() -> attribute_display_settings: """Get attribute display settings for solid wall axis. @@ -1562,6 +1693,7 @@ def get_attribute_display_settings_for_solid_wall_axis() -> attribute_display_se The attribute display settings for solid wall axis. """ + def get_attribute_display_settings_for_solid_wall_beam() -> attribute_display_settings: """Get attribute display settings for solid wall beam. @@ -1569,6 +1701,7 @@ def get_attribute_display_settings_for_solid_wall_beam() -> attribute_display_se The attribute display settings for solid wall beam. """ + def get_attribute_display_settings_for_solid_wall_opening() -> attribute_display_settings: """Get attribute display settings for solid wall opening. @@ -1576,6 +1709,7 @@ def get_attribute_display_settings_for_solid_wall_opening() -> attribute_display The attribute display settings for solid wall opening. """ + def get_attribute_display_settings_for_solid_wall_panel() -> attribute_display_settings: """Get attribute display settings for solid wall panel. @@ -1583,6 +1717,7 @@ def get_attribute_display_settings_for_solid_wall_panel() -> attribute_display_s The attribute display settings for solid wall panel. """ + def is_processing(element_id: ElementId) -> bool: """Tests if element is processing. @@ -1593,6 +1728,7 @@ def is_processing(element_id: ElementId) -> bool: True if the element is processing, false otherwise. """ + def delete_user_attribute(number: UserAttributeId) -> bool: """Delete user attribute from attribute list. The attribute is only deleted when the attribute is not used. @@ -1603,6 +1739,7 @@ def delete_user_attribute(number: UserAttributeId) -> bool: True if the attribute was successfully deleted, false otherwise. """ + def is_attribute_visible_in_modify_window(number: UnsignedInt) -> bool: """Test if attribute is visible in modify window. @@ -1613,6 +1750,7 @@ def is_attribute_visible_in_modify_window(number: UnsignedInt) -> bool: True if the attribute is visible in the modify window, false otherwise. """ + def set_attribute_visibility_in_modify_window(number: UnsignedInt, visibility: bool) -> None: """Set attribute visibility in modify window. @@ -1621,6 +1759,7 @@ def set_attribute_visibility_in_modify_window(number: UnsignedInt, visibility: b visibility: The visibility state. """ + def set_cutting_set(element_id_list: List[ElementId], cutting_set_name: str) -> bool: """Set cutting set. @@ -1632,6 +1771,7 @@ def set_cutting_set(element_id_list: List[ElementId], cutting_set_name: str) -> True if the cutting set was successfully set, false otherwise. """ + def get_standard_element_material_id(element_id: ElementId) -> int: """Get standard element material id. @@ -1640,4 +1780,26 @@ def get_standard_element_material_id(element_id: ElementId) -> int: Returns: The standard element material id. - """ \ No newline at end of file + """ + + +def set_machine_calculation_set(element_ids: List[ElementId], name: str) -> bool: + """Set machine calculation set for a list of elements. + + Note: + If multiple sets share the same name, the first matching set is used. + + Parameters: + element_ids: The list of element ids. + name: The name of the machine calculation set to apply. + + Examples: + >>> import attribute_controller as ac + >>> import element_controller as ec + >>> [element] = ec.get_active_identifiable_element_ids() + >>> current_set = ac.get_machine_calculation_set(element) + >>> success = ac.set_machine_calculation_set([element], "xyz_hundegger K2_BVN") + + Returns: + True if the machine calculation set was successfully applied, false otherwise. + """