Skip to main content

Expressions, units, and tolerances

Symbolic parameters, physical dimensions, conversions, tolerance graphs, and reports.

This catalog contains 59 public symbols. Select a symbol for its exact signature, parameters, return contract, errors, members, aliases, and behavior notes.

Modules

SymbolImportSummary
expressionsfrom cadflow import expressionsExpression graph domain facade.
tolerancesfrom cadflow import tolerancesTolerance analysis domain facade.

Classes

SymbolImportSummary
Constfrom cadflow import ConstImmutable constant node used in the v2 expression graph.
Dimensionfrom cadflow import DimensionPhysical dimension represented by integer length and angle exponents.
DimensionTolerancefrom cadflow import DimensionTolerancePermitted lower and upper deviations from a nominal dimension.
Exprfrom cadflow import ExprDerived scalar expression node built from one or more operands.
ExpressionGraphfrom cadflow import ExpressionGraphA lightweight registry of expression DAG nodes.
ToleranceAnalysisfrom cadflow import ToleranceAnalysisNominal value and propagated limits for an expression.
ToleranceCheckfrom cadflow import ToleranceCheckValidation result for one tolerance requirement.
ToleranceContributionfrom cadflow import ToleranceContributionOne source dimension's propagated contribution to a result.
ToleranceGraphfrom cadflow import ToleranceGraphTolerance requirements attached to one expression graph.
ToleranceReportfrom cadflow import ToleranceReportValidation report for every requirement in a tolerance graph.
ToleranceRequirementfrom cadflow import ToleranceRequirementPermitted result deviations for one derived dimension.
Unitfrom cadflow import UnitNamed unit with a scale to CadFlow's canonical numeric units.
Varfrom cadflow import VarNamed scalar parameter with optional physical-unit and tolerance intent.

Exceptions

SymbolImportSummary
ToleranceAnalysisErrorfrom cadflow import ToleranceAnalysisErrorRaised when a tolerance chain cannot be propagated safely.
ToleranceValidationErrorfrom cadflow import ToleranceValidationErrorRaised when one or more declared tolerance requirements fail.
UnitValidationErrorfrom cadflow import UnitValidationErrorRaised when units or expression dimensions are physically inconsistent.

Functions

SymbolImportSummary
acosfrom cadflow import acosPublic function in this domain.
analyze_tolerancefrom cadflow import analyze_tolerancePropagate source manufacturing tolerances through a scalar expression.
asinfrom cadflow import asinPublic function in this domain.
atanfrom cadflow import atanPublic function in this domain.
atan2from cadflow import atan2Public function in this domain.
canonical_unit_for_dimensionfrom cadflow import canonical_unit_for_dimensionReturn the canonical unit used by CAD and tolerance calculations.
check_tolerancefrom cadflow import check_tolerancePropagate and verify one Length or Angle requirement.
constfrom cadflow import constCreate a constant scalar node for parameterized modeling.
convert_valuefrom cadflow import convert_valueConvert a finite numeric value between dimensionally compatible units.
cosfrom cadflow import cosPublic function in this domain.
expression_uses_unitsfrom cadflow import expression_uses_unitsReturn whether an expression contains an explicit unit declaration.
get_unitfrom cadflow import get_unitResolve a built-in unit name/alias or return an existing Unit.
infer_dimensionfrom cadflow import infer_dimensionInfer and validate an expression's result dimension.
sinfrom cadflow import sinPublic function in this domain.
sqrtfrom cadflow import sqrtPublic function in this domain.
tanfrom cadflow import tanPublic function in this domain.
varfrom cadflow import varCreate a physical or legacy scalar variable.

Constants

SymbolImportSummary
ANGLEfrom cadflow import ANGLEPhysical dimension represented by integer length and angle exponents.
AREAfrom cadflow import AREAPhysical dimension represented by integer length and angle exponents.
CMfrom cadflow import CMNamed unit with a scale to CadFlow's canonical numeric units.
CUBIC_CMfrom cadflow import CUBIC_CMNamed unit with a scale to CadFlow's canonical numeric units.
CUBIC_FOOTfrom cadflow import CUBIC_FOOTNamed unit with a scale to CadFlow's canonical numeric units.
CUBIC_INCHfrom cadflow import CUBIC_INCHNamed unit with a scale to CadFlow's canonical numeric units.
CUBIC_Mfrom cadflow import CUBIC_MNamed unit with a scale to CadFlow's canonical numeric units.
CUBIC_MMfrom cadflow import CUBIC_MMNamed unit with a scale to CadFlow's canonical numeric units.
DEGREEfrom cadflow import DEGREENamed unit with a scale to CadFlow's canonical numeric units.
DIMENSIONLESSfrom cadflow import DIMENSIONLESSPhysical dimension represented by integer length and angle exponents.
FOOTfrom cadflow import FOOTNamed unit with a scale to CadFlow's canonical numeric units.
INCHfrom cadflow import INCHNamed unit with a scale to CadFlow's canonical numeric units.
LENGTHfrom cadflow import LENGTHPhysical dimension represented by integer length and angle exponents.
Mfrom cadflow import MNamed unit with a scale to CadFlow's canonical numeric units.
MMfrom cadflow import MMNamed unit with a scale to CadFlow's canonical numeric units.
ONEfrom cadflow import ONENamed unit with a scale to CadFlow's canonical numeric units.
PERCENTfrom cadflow import PERCENTNamed unit with a scale to CadFlow's canonical numeric units.
RADIANfrom cadflow import RADIANNamed unit with a scale to CadFlow's canonical numeric units.
SQUARE_CMfrom cadflow import SQUARE_CMNamed unit with a scale to CadFlow's canonical numeric units.
SQUARE_FOOTfrom cadflow import SQUARE_FOOTNamed unit with a scale to CadFlow's canonical numeric units.
SQUARE_INCHfrom cadflow import SQUARE_INCHNamed unit with a scale to CadFlow's canonical numeric units.
SQUARE_Mfrom cadflow import SQUARE_MNamed unit with a scale to CadFlow's canonical numeric units.
SQUARE_MMfrom cadflow import SQUARE_MMNamed unit with a scale to CadFlow's canonical numeric units.
VOLUMEfrom cadflow import VOLUMEPhysical dimension represented by integer length and angle exponents.