End-Type Controller
End-type joinery: profiled cuts at element faces.
Domain of named joinery profiles (tenons, mortises, dovetails, custom shapes, ...) applied to the start, end or arbitrary faces of an element. Covers the catalog (creation, lookup by name and id), assignment to specific element faces, retrieval of currently applied end-types, and the interactive selection dialog.
create_new_endtype(endtype_name: str, endtype_id: EndtypeId, folder_name: str) -> EndtypeId
Creates a new Endtype.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
endtype_name
|
str
|
The new endtype name. |
required |
endtype_id
|
EndtypeId
|
The new endtype id. |
required |
folder_name
|
str
|
The new endtype folder. |
required |
Examples:
1 | |
1 2 3 4 5 | |
Returns:
| Type | Description |
|---|---|
EndtypeId
|
The ID of the created endtype. |
get_endtype_id(name: str) -> EndtypeId
Gets the endtype id by endtype name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The endtype name. |
required |
Examples:
1 | |
1 2 3 | |
Returns:
| Type | Description |
|---|---|
EndtypeId
|
The wanted endtype id. |
get_endtype_id_end(element_id: ElementId) -> EndtypeId
Gets the endtype id of the end face.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
EndtypeId
|
The wanted endtype id. |
get_endtype_id_facet(element_id: ElementId, face_number: int) -> EndtypeId
Gets the endtype id of a face with the face number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
face_number
|
int
|
The face number. 0 <= aFaceNumber < element face count. |
required |
Note
Endtypes can only be set on faces that are placed at start or end points. Endtypes cannot be placed on arbitrary faces.
Examples:
1 2 | |
1 2 3 4 5 | |
Returns:
| Type | Description |
|---|---|
EndtypeId
|
The wanted endtype id. |
get_endtype_id_start(element_id: ElementId) -> EndtypeId
Gets the endtype id of the start face.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
EndtypeId
|
The wanted endtype id. |
get_endtype_name(element_id: ElementId) -> str
Gets the endtype name by endtype id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The endtype id. |
required |
Examples:
1 | |
1 2 3 | |
Returns:
| Type | Description |
|---|---|
str
|
The endtype name. |
get_endtype_name_end(element_id: ElementId) -> str
Gets the endtype name of the end face.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
str
|
The endtype name of the end face. |
get_endtype_name_facet(element_id: ElementId, face_number: int) -> str
Gets the endtype name of the face with a number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
face_number
|
int
|
The face number. 0 <= aFaceNumber < element face count. |
required |
Note
Endtypes can only be set on faces that are placed at start or end points. Endtypes cannot be placed on arbitrary faces.
Examples:
1 2 | |
1 2 3 4 5 | |
Returns:
| Type | Description |
|---|---|
str
|
The endtype name of the face. |
get_endtype_name_start(element_id: ElementId) -> str
Gets the endtype name of the start face.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
Returns:
| Type | Description |
|---|---|
str
|
The endtype name of the start face. |
get_existing_dovetail_dado_ids() -> list[EndtypeId]
Get the existing dado endtype id list.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
list[EndtypeId]
|
List of existing dado endtype id. |
get_existing_dovetail_ids() -> list[EndtypeId]
Get the existing dovetail endtype id list.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
list[EndtypeId]
|
List of existing dovetail endtype id. |
get_existing_japanese_tenon_ids() -> list[EndtypeId]
Get the existing japanese-tenon endtype id list.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
list[EndtypeId]
|
List of existing japanese-tenon endtype id. |
get_existing_lengthening_ids() -> list[EndtypeId]
Get the existing lengthening endtype id list.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
list[EndtypeId]
|
List of existing lengthening endtype id. |
get_existing_tenon_ids() -> list[EndtypeId]
Get the existing tenon endtype id list.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
list[EndtypeId]
|
List of existing tenon endtype id. |
set_endtype_id_end(element_id: ElementId, endtype_id: EndtypeId) -> None
Sets the endtype to end face by endtype id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
endtype_id
|
EndtypeId
|
The endtype id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
set_endtype_id_facet(element_id: ElementId, endtype_id: EndtypeId, face_number: int) -> None
Sets the endtype to a face by endtype id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
endtype_id
|
EndtypeId
|
The endtype id. |
required |
face_number
|
int
|
The face number. 0 <= aFaceNumber < element face count. |
required |
Note
Endtypes can only be set on faces that are placed at start or end points. Endtypes cannot be placed on arbitrary faces.
Examples:
1 2 | |
1 2 3 4 5 | |
set_endtype_id_start(element_id: ElementId, endtype_id: EndtypeId) -> None
Sets the endtype to start face by endtype id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
endtype_id
|
EndtypeId
|
The endtype id. |
required |
Examples:
1 2 | |
1 2 3 4 | |
set_endtype_name_end(element_id: ElementId, name: str) -> None
Sets the endtype to end face by endtype name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
name
|
str
|
The endtype name. |
required |
Examples:
1 2 | |
1 2 3 4 | |
set_endtype_name_facet(element_id: ElementId, name: str, face_number: int) -> None
Sets the endtype to a face by endtype name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
name
|
str
|
The endtype name. |
required |
face_number
|
int
|
The face number. 0 <= aFaceNumber < element face count. |
required |
Note
Endtypes can only be set on faces that are placed at start or end points. Endtypes cannot be placed on arbitrary faces.
Examples:
1 2 | |
1 2 3 4 5 | |
set_endtype_name_start(element_id: ElementId, name: str) -> None
Sets the endtype to start face by endtype name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
element_id
|
ElementId
|
The element id. |
required |
name
|
str
|
The endtype name. |
required |
Examples:
1 2 | |
1 2 3 4 | |
start_endtype_dialog() -> int
Start endtype dialog.
Examples:
1 | |
1 2 | |
Returns:
| Type | Description |
|---|---|
int
|
Selected endtype id. |