feat: integrate SimpleCADAPI 2.0.2 CAD workflows
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## Class Definition
|
||||
|
||||
```python
|
||||
class Var(name: str, default: float, comment: str | None = None, expr_id: str = field(default_factory=lambda : _make_expr_id('var')))
|
||||
class Var(name: str, default: float, comment: str | None = None, expr_id: str = field(default_factory=lambda : _make_expr_id('var')), tolerance: DimensionTolerance | None = None, unit: Unit | None = None, tolerance_unit: Unit | None = None)
|
||||
```
|
||||
|
||||
*Source: expr.py*
|
||||
@@ -14,4 +14,8 @@ class Var(name: str, default: float, comment: str | None = None, expr_id: str =
|
||||
|
||||
## Description
|
||||
|
||||
Named scalar parameter with a default fallback value.
|
||||
Named scalar parameter with optional physical-unit and tolerance intent.
|
||||
|
||||
``default`` and ``tolerance`` remain in their declared units. Evaluation,
|
||||
geometry parameters, and tolerance propagation convert them to SimpleCAD's
|
||||
canonical CAD units: millimeters for length and degrees for angle.
|
||||
|
||||
Reference in New Issue
Block a user