Machine Controller
CNC and woodworking-machine output.
Covers the calculation and export of machine data for fabrication: BTL / BTLx in their supported versions, the Hundegger family and its variants (with optional preset files and silent operation), and the inspection of per-element machine processings. The bridge between the cadwork model and the shop floor.
calculate_btl_machine_data(element_id_list: list[ElementId], btl_version: btl_version) -> None
Calculates the Machine Data for BTL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id_list
|
list[ElementId]
|
The list of element Id. |
required |
btl_version
|
btl_version
|
The BTL version. |
required |
Examples:
1 2 3 | |
1 2 3 | |
calculate_hundegger_machine_data(element_id_list: list[ElementId], hundeggertype: hundegger_machine_type) -> None
Calculates the Machine Data for Hundegger.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id_list
|
list[ElementId]
|
The list of element Id. |
required |
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
Examples:
1 2 3 | |
1 2 3 | |
export_btl(btl_version: btl_version, file_path: str) -> None
Exports a BTL file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
btl_version
|
btl_version
|
The BTL version. |
required |
file_path
|
str
|
The export file path. |
required |
Examples:
1 2 | |
1 2 3 | |
export_btl_with_presetting(btl_version: btl_version, file_path: str, presetting: str) -> None
Exports a BTL file with a presetting file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
btl_version
|
btl_version
|
The BTL version. |
required |
file_path
|
str
|
The export file path. |
required |
presetting
|
str
|
The presetting file path (.xml). |
required |
Examples:
1 2 | |
1 2 3 4 | |
export_hundegger(hundeggertype: hundegger_machine_type) -> None
Exports a Hundegger file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
Examples:
1 2 | |
1 2 | |
export_hundegger_with_file_path(hundeggertype: hundegger_machine_type, file_path: str) -> None
Exports a Hundegger file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
file_path
|
str
|
The export file path. |
required |
Examples:
1 2 | |
1 2 3 | |
export_hundegger_with_file_path_and_presetting(hundeggertype: hundegger_machine_type, file_path: str, presetting: str) -> None
Exports a Hundegger file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
file_path
|
str
|
The export file path. |
required |
presetting
|
str
|
The presetting file path (.xml). |
required |
Examples:
1 2 | |
1 2 3 4 | |
export_hundegger_with_file_path_and_presetting_silent(hundeggertype: hundegger_machine_type, file_path: str, presetting: str) -> None
Exports a Hundegger file silently.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
file_path
|
str
|
The export file path. |
required |
presetting
|
str
|
The presetting file path (.xml). |
required |
Examples:
1 2 | |
1 2 3 4 | |
export_hundegger_with_file_path_silent(hundeggertype: hundegger_machine_type, file_path: str) -> None
Exports a Hundegger file silently.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
file_path
|
str
|
The export file path. |
required |
Examples:
1 2 | |
1 2 3 | |
export_weinmann_mfb(mfb_version: weinmann_mfb_version) -> None
Exports a Weinmann MFB file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mfb_version
|
weinmann_mfb_version
|
The Weinmann MFB version. |
required |
Examples:
1 | |
1 2 | |
get_element_btl_processings(element_id: ElementId, btl_version: btl_version) -> list[ElementId]
Gets the list of BTL processings for a specific element.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
btl_version
|
btl_version
|
The BTL version. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
list[ElementId]
|
A list of element IDs representing the processings. |
get_element_hundegger_processings(element_id: ElementId, hundeggertype: hundegger_machine_type) -> list[ElementId]
Gets the list of Hundegger processings for a specific element.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
list[ElementId]
|
A list of element IDs representing the processings. |
get_processing_btl_parameter_set(reference_element_id: ElementId, processing_id: ElementId) -> list[str]
Gets the BTL parameter set of a specific processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_element_id
|
ElementId
|
The reference element id. |
required |
processing_id
|
ElementId
|
The processing id. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
list[str]
|
A list of strings representing the BTL parameter set of the processing. |
get_processing_code(reference_element_id: ElementId, processing_id: ElementId) -> str
Gets the code of a specific processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_element_id
|
ElementId
|
The reference element id. |
required |
processing_id
|
ElementId
|
The processing id. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
str
|
The code of the processing. |
get_processing_name(reference_element_id: ElementId, processing_id: ElementId) -> str
Gets the name of a specific processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_element_id
|
ElementId
|
The reference element id. |
required |
processing_id
|
ElementId
|
The processing id. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
str
|
The name of the processing. |
get_processing_points(reference_element_id: ElementId, processing_id: ElementId) -> vertex_list
Gets the points of a specific processing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_element_id
|
ElementId
|
The reference element id. |
required |
processing_id
|
ElementId
|
The processing id. |
required |
Examples:
1 2 3 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
vertex_list
|
A list of vertices representing the points of the processing. |
load_hundegger_calculation_set(hundeggertype: hundegger_machine_type, file_path: str) -> None
Loads the Hundegger calculation set.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hundeggertype
|
hundegger_machine_type
|
The Hundegger machine type. |
required |
file_path
|
str
|
The file path of the calculation set. |
required |