SemanticDelta
类型: 类
领域: 建模与几何
推荐导入: from cadflow import SemanticDelta
签名
class SemanticDelta(created: 'Tuple[SemanticRef, ...]' = (), modified: 'Tuple[SemanticRef, ...]' = (), deleted: 'Tuple[SemanticRef, ...]' = (), metadata: 'Dict[str, Any]' = <factory>) -> None
功能说明
SemanticDelta 是 CadFlow 建模与几何领域的公共类。
原始 API 说明
Semantic entity change set attached to a single recorded operation.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
created | 'Tuple[SemanticRef, ...]' | 否 | () | 源码 Docstring 未单独说明。 |
modified | 'Tuple[SemanticRef, ...]' | 否 | () | 源码 Docstring 未单独说明。 |
deleted | 'Tuple[SemanticRef, ...]' | 否 | () | 源码 Docstring 未单独说明。 |
metadata | 'Dict[str, Any]' | 否 | <factory> | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
created | 'Tuple[SemanticRef, ...]' | () |
modified | 'Tuple[SemanticRef, ...]' | () |
deleted | 'Tuple[SemanticRef, ...]' | () |
metadata | 'Dict[str, Any]' | factory |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow import SemanticDelta