ConnectionRegion
Kind: Class
Domain: Physical connections
Canonical import: from cadflow import ConnectionRegion
Signature
class ConnectionRegion(region_id: 'str', component_id: 'str', geometry_ref: 'GeometryRef', role: 'ConnectionRegionRole | str' = <ConnectionRegionRole.CONTACT: 'contact'>, metadata: 'dict[str, Any]' = <factory>) -> None
Description
Component-local BREP region participating in a physical connection.
Other public imports
from cadflow.physical import ConnectionRegion
Parameters
| Name | Type | Required | Default | Source description |
|---|---|---|---|---|
region_id | 'str' | yes | - | Not explicitly described in the source docstring. |
component_id | 'str' | yes | - | Not explicitly described in the source docstring. |
geometry_ref | 'GeometryRef' | yes | - | Not explicitly described in the source docstring. |
role | 'ConnectionRegionRole | str' | no | <ConnectionRegionRole.CONTACT: 'contact'> | Not explicitly described in the source docstring. |
metadata | 'dict[str, Any]' | no | <factory> | Not explicitly described in the source docstring. |
Returns
Type: None
The source docstring does not declare additional return semantics.
Errors
The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.
Data fields
| Name | Type | Default |
|---|---|---|
region_id | 'str' | required |
component_id | 'str' | required |
geometry_ref | 'GeometryRef' | required |
role | 'ConnectionRegionRole | str' | <ConnectionRegionRole.CONTACT: 'contact'> |
metadata | 'dict[str, Any]' | factory |
Public members
| Member | Kind | Signature | Description |
|---|---|---|---|
from_dict | class method | (cls, data: 'Mapping[str, Any]') -> "'ConnectionRegion'" | See the member signature. |
to_dict | method | (self) -> 'dict[str, Any]' | See the member signature. |
Behavior and constraints
- Instances are immutable dataclass values; update workflows return a replacement value.
Import check
from cadflow import ConnectionRegion