cwapi3d 33.265.2__tar.gz → 33.293.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cwapi3d-33.265.2/src/cwapi3d.egg-info → cwapi3d-33.293.0}/PKG-INFO +1 -1
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/pyproject.toml +1 -1
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/__init__.pyi +6 -0
- cwapi3d-33.293.0/src/cadwork/panel_prefab_element_data.pyi +44 -0
- cwapi3d-33.293.0/src/cadwork/panel_prefab_element_settings.pyi +58 -0
- cwapi3d-33.293.0/src/cadwork/panel_prefab_element_type.pyi +30 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0/src/cwapi3d.egg-info}/PKG-INFO +1 -1
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cwapi3d.egg-info/SOURCES.txt +3 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/machine_controller/__init__.pyi +52 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/LICENSE +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/README.md +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/setup.cfg +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/attribute_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/attribute_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/bim_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/bim_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/active_point_result.py +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/active_point_result.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/api_types.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/attribute_display_settings.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/bim_team_upload_result.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/bim_team_upload_result_code.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/btl_version.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/camera_data.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/connector_axis_item.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/coordinate_system_data.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/dimension_base_format.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/display_attribute.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/division_zone_direction.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/double_shoulder_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/dxf_export_version.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/dxf_layer_format_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/edge_list.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_filter.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_grouping_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_map_query.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_module_detail.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_module_properties.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/element_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/extended_settings.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/facet_list.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/heel_shoulder_beam_geometry.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/heel_shoulder_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/hit_result.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/hundegger_machine_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_2x3_element_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_element_combine_behaviour.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_material_definition.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_options_aggregation.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_options_level_of_detail.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_options_project_data.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_options_properties.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/ifc_predefined_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/import_3dc_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/layer_settings.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/multi_layer_cover_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/multi_layer_subtype.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/multi_layer_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/node_symbol.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/point.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/point_3d.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/polygon_list.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/process_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/projection_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/rgb_color.py +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/rgb_color.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/rhino_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/shortcut_key.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/shortcut_key_modifier.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/shoulder_beam_geometry.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/shoulder_drilling_orientation.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/shoulder_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/standard_element_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/text_element_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/text_object_options.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/vba_catalog_item_type.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/vertex_list.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/weinmann_mfb_version.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cadwork/window_geometry.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/connector_axis_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/connector_axis_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cwapi3d.egg-info/dependency_links.txt +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/cwapi3d.egg-info/top_level.txt +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/dimension_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/dimension_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/element_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/element_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/endtype_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/endtype_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/file_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/file_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/geometry_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/geometry_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/list_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/list_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/machine_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/material_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/material_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/menu_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/menu_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/multi_layer_cover_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/multi_layer_cover_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/roof_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/roof_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/scene_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/scene_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/shop_drawing_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/shop_drawing_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/utility_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/utility_controller/py.typed +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/visualization_controller/__init__.pyi +0 -0
- {cwapi3d-33.265.2 → cwapi3d-33.293.0}/src/visualization_controller/py.typed +0 -0
|
@@ -47,6 +47,8 @@ from .ifc_options_project_data import ifc_options_project_data as ifc_options_pr
|
|
|
47
47
|
from .ifc_options_properties import ifc_options_properties as ifc_options_properties
|
|
48
48
|
from .import_3dc_options import import_3dc_options as import_3dc_options
|
|
49
49
|
from .layer_settings import layer_settings as layer_settings
|
|
50
|
+
from .panel_prefab_element_data import panel_prefab_element_data as panel_prefab_element_data
|
|
51
|
+
from .panel_prefab_element_settings import panel_prefab_element_settings as panel_prefab_element_settings
|
|
50
52
|
from .point import point as point
|
|
51
53
|
from .point_3d import point_3d as point_3d
|
|
52
54
|
from .polygon_list import polygon_list as polygon_list
|
|
@@ -76,6 +78,7 @@ from .multi_layer_cover_type import multi_layer_cover_type as multi_layer_cover_
|
|
|
76
78
|
from .multi_layer_subtype import multi_layer_subtype as multi_layer_subtype
|
|
77
79
|
from .multi_layer_type import multi_layer_type as multi_layer_type
|
|
78
80
|
from .node_symbol import node_symbol as node_symbol
|
|
81
|
+
from .panel_prefab_element_type import panel_prefab_element_type as panel_prefab_element_type
|
|
79
82
|
from .process_type import process_type as process_type
|
|
80
83
|
from .projection_type import projection_type as projection_type
|
|
81
84
|
from .shortcut_key import shortcut_key as shortcut_key
|
|
@@ -124,6 +127,8 @@ __all__ = [
|
|
|
124
127
|
"ifc_options_properties",
|
|
125
128
|
"import_3dc_options",
|
|
126
129
|
"layer_settings",
|
|
130
|
+
"panel_prefab_element_data",
|
|
131
|
+
"panel_prefab_element_settings",
|
|
127
132
|
"point",
|
|
128
133
|
"point_3d",
|
|
129
134
|
"polygon_list",
|
|
@@ -152,6 +157,7 @@ __all__ = [
|
|
|
152
157
|
"multi_layer_subtype",
|
|
153
158
|
"multi_layer_type",
|
|
154
159
|
"node_symbol",
|
|
160
|
+
"panel_prefab_element_type",
|
|
155
161
|
"process_type",
|
|
156
162
|
"projection_type",
|
|
157
163
|
"shortcut_key",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from cadwork.panel_prefab_element_type import panel_prefab_element_type
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class panel_prefab_element_data:
|
|
5
|
+
"""Read-only machine panel prefabrication data of an element.
|
|
6
|
+
|
|
7
|
+
Holds the element type, layer location and MFB prefab config (machine
|
|
8
|
+
calculation set) of an element. Returned by
|
|
9
|
+
machine_controller.get_panel_prefab_element_data.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def get_element_type(self) -> panel_prefab_element_type:
|
|
13
|
+
"""get element type
|
|
14
|
+
|
|
15
|
+
Returns:
|
|
16
|
+
panel_prefab_element_type
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def has_layer(self) -> bool:
|
|
20
|
+
"""has layer
|
|
21
|
+
|
|
22
|
+
Tests if a layer location is set on the element.
|
|
23
|
+
|
|
24
|
+
Returns:
|
|
25
|
+
bool
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
def get_layer(self) -> int:
|
|
29
|
+
"""get layer
|
|
30
|
+
|
|
31
|
+
Gets the layer location. Only meaningful if has_layer() returns True.
|
|
32
|
+
|
|
33
|
+
Returns:
|
|
34
|
+
int
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def get_machine_calculation_set(self) -> str:
|
|
38
|
+
"""get machine calculation set
|
|
39
|
+
|
|
40
|
+
Gets the machine calculation set (MFB prefab config) name.
|
|
41
|
+
|
|
42
|
+
Returns:
|
|
43
|
+
str
|
|
44
|
+
"""
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from cadwork.panel_prefab_element_type import panel_prefab_element_type
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class panel_prefab_element_settings:
|
|
5
|
+
"""Machine panel prefabrication settings passed to the setter.
|
|
6
|
+
|
|
7
|
+
Only the fields that are explicitly set are applied to the elements; unset
|
|
8
|
+
fields are left untouched, mirroring the interactive "only change what
|
|
9
|
+
differs" behaviour. Passed to machine_controller.set_panel_prefab_element_data.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self) -> None:
|
|
13
|
+
"""Creates an empty panel prefab element settings object."""
|
|
14
|
+
|
|
15
|
+
def set_element_type(self, type: panel_prefab_element_type) -> None:
|
|
16
|
+
"""set element type
|
|
17
|
+
|
|
18
|
+
Sets the panel prefab element type to apply.
|
|
19
|
+
|
|
20
|
+
Parameters:
|
|
21
|
+
type: The element type.
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
None
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
def set_layer(self, layer: int) -> None:
|
|
28
|
+
"""set layer
|
|
29
|
+
|
|
30
|
+
Sets the layer location to apply.
|
|
31
|
+
|
|
32
|
+
Parameters:
|
|
33
|
+
layer: The layer location.
|
|
34
|
+
|
|
35
|
+
Returns:
|
|
36
|
+
None
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
def reset_layer(self) -> None:
|
|
40
|
+
"""reset layer
|
|
41
|
+
|
|
42
|
+
Resets (clears) the layer location.
|
|
43
|
+
|
|
44
|
+
Returns:
|
|
45
|
+
None
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def set_machine_calculation_set(self, machine_calculation_set: str) -> None:
|
|
49
|
+
"""set machine calculation set
|
|
50
|
+
|
|
51
|
+
Sets the machine calculation set (MFB prefab config) name to apply.
|
|
52
|
+
|
|
53
|
+
Parameters:
|
|
54
|
+
machine_calculation_set: The MFB prefab config name.
|
|
55
|
+
|
|
56
|
+
Returns:
|
|
57
|
+
None
|
|
58
|
+
"""
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from enum import IntEnum, unique
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
@unique
|
|
5
|
+
class panel_prefab_element_type(IntEnum):
|
|
6
|
+
"""panel prefab element type
|
|
7
|
+
|
|
8
|
+
Exclusive machine panel prefabrication element type of an element.
|
|
9
|
+
|
|
10
|
+
Examples:
|
|
11
|
+
>>> cadwork.panel_prefab_element_type.batten
|
|
12
|
+
batten
|
|
13
|
+
"""
|
|
14
|
+
none = 0
|
|
15
|
+
""""""
|
|
16
|
+
frame = 1
|
|
17
|
+
""""""
|
|
18
|
+
panel = 2
|
|
19
|
+
""""""
|
|
20
|
+
batten = 3
|
|
21
|
+
""""""
|
|
22
|
+
cladding = 4
|
|
23
|
+
""""""
|
|
24
|
+
insulation = 5
|
|
25
|
+
""""""
|
|
26
|
+
built_in_part = 6
|
|
27
|
+
""""""
|
|
28
|
+
|
|
29
|
+
def __int__(self) -> int:
|
|
30
|
+
return self.value
|
|
@@ -50,6 +50,9 @@ src/cadwork/multi_layer_cover_type.pyi
|
|
|
50
50
|
src/cadwork/multi_layer_subtype.pyi
|
|
51
51
|
src/cadwork/multi_layer_type.pyi
|
|
52
52
|
src/cadwork/node_symbol.pyi
|
|
53
|
+
src/cadwork/panel_prefab_element_data.pyi
|
|
54
|
+
src/cadwork/panel_prefab_element_settings.pyi
|
|
55
|
+
src/cadwork/panel_prefab_element_type.pyi
|
|
53
56
|
src/cadwork/point.pyi
|
|
54
57
|
src/cadwork/point_3d.pyi
|
|
55
58
|
src/cadwork/polygon_list.pyi
|
|
@@ -11,6 +11,8 @@ from cadwork import vertex_list
|
|
|
11
11
|
from cadwork.api_types import ElementId
|
|
12
12
|
from cadwork.btl_version import btl_version
|
|
13
13
|
from cadwork.hundegger_machine_type import hundegger_machine_type
|
|
14
|
+
from cadwork.panel_prefab_element_data import panel_prefab_element_data
|
|
15
|
+
from cadwork.panel_prefab_element_settings import panel_prefab_element_settings
|
|
14
16
|
from cadwork.weinmann_mfb_version import weinmann_mfb_version
|
|
15
17
|
|
|
16
18
|
|
|
@@ -315,4 +317,54 @@ def get_processing_btl_parameter_set(reference_element_id: ElementId, processing
|
|
|
315
317
|
|
|
316
318
|
Returns:
|
|
317
319
|
A list of strings representing the BTL parameter set of the processing.
|
|
320
|
+
"""
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
def get_panel_prefab_element_data(element_id: ElementId) -> panel_prefab_element_data:
|
|
324
|
+
"""Gets the machine panel prefabrication data of an element.
|
|
325
|
+
|
|
326
|
+
Returns the element type, layer location and MFB prefab config
|
|
327
|
+
(machine calculation set) of an element.
|
|
328
|
+
|
|
329
|
+
Parameters:
|
|
330
|
+
element_id: The element id.
|
|
331
|
+
|
|
332
|
+
Examples:
|
|
333
|
+
>>> import cadwork
|
|
334
|
+
>>> import machine_controller as mc
|
|
335
|
+
|
|
336
|
+
>>> element: int = 123456789
|
|
337
|
+
>>> data = mc.get_panel_prefab_element_data(element)
|
|
338
|
+
>>> element_type = data.get_element_type()
|
|
339
|
+
>>> if data.has_layer():
|
|
340
|
+
>>> layer = data.get_layer()
|
|
341
|
+
>>> config = data.get_machine_calculation_set()
|
|
342
|
+
|
|
343
|
+
Returns:
|
|
344
|
+
The panel prefab element data.
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
def set_panel_prefab_element_data(element_id_list: list[ElementId], settings: panel_prefab_element_settings) -> None:
|
|
349
|
+
"""Sets the machine panel prefabrication data on a list of elements.
|
|
350
|
+
|
|
351
|
+
Only the fields explicitly set on the settings object are applied; unset
|
|
352
|
+
fields are left untouched. Elements without a panel prefabrication
|
|
353
|
+
interface are skipped.
|
|
354
|
+
|
|
355
|
+
Parameters:
|
|
356
|
+
element_id_list: The list of element ids.
|
|
357
|
+
settings: The panel prefab settings to apply.
|
|
358
|
+
|
|
359
|
+
Examples:
|
|
360
|
+
>>> import cadwork
|
|
361
|
+
>>> import element_controller as ec
|
|
362
|
+
>>> import machine_controller as mc
|
|
363
|
+
|
|
364
|
+
>>> elements = ec.get_active_identifiable_element_ids()
|
|
365
|
+
>>> settings = cadwork.panel_prefab_element_settings()
|
|
366
|
+
>>> settings.set_element_type(cadwork.panel_prefab_element_type.batten)
|
|
367
|
+
>>> settings.set_layer(2)
|
|
368
|
+
>>> settings.set_machine_calculation_set("MyMfbConfig")
|
|
369
|
+
>>> mc.set_panel_prefab_element_data(elements, settings)
|
|
318
370
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|