Skip to main content

2D CAD Entity Ontology

CAD and Digital Model Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 26 November 2026
Audio Overview
FLOW "2DCADEntity" v1.0
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
LICENCE: Open Research — attribution required
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/cad-and-digital-model-entities/2d-cad-entity-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/cad-and-digital-model-entities/2d-cad-entity-ontology.html
LANGUAGE: en-GB
SOURCE_STATUS: Proposed specification; embedded ontology not independently verified.

PURPOSE
Represent versioned two-dimensional computer-aided design artefacts, their planar geometry, constraints, documentation and engineering intent. Distinguish model space from paper space, native geometry from exports, and intended dimensions from physical measurements. A 2D representation does not establish a unique 3D object or manufacturing conformity.

STATE_MODEL
S_t = (I_t,R,B,K_t)
I_t: typed ground assertions; R: rules; B: fixed evidence and scope; K_t: derivation provenance.
E_t = expand(I_t,R)
V_t = {x in E_t : valid(x,B) and supported(x,I_t,B)}
N_t = V_t minus I_t
If N_t is empty terminate; otherwise select x_t = argmax score(x|I_t,R,B,K_t), breaking ties by canonical assertion ID.
I_(t+1) = I_t union {x_t}; K_(t+1) = K_t union derivation(x_t).

ENTITIES AND PATHWAYS
2DCADEntity --represents--> EngineeringDesign : Versioned design intent
2DCADEntity --hasPoint--> Point2D : Planar location
2DCADEntity --hasLine--> LineSegment : Finite straight geometry
2DCADEntity --hasArc--> CircularArc : Centre, radius and angular interval
2DCADEntity --hasCircle--> Circle : Closed circular geometry
2DCADEntity --hasCurve--> SplineCurve : Parametric curve and domain
2DCADEntity --hasPolyline--> Polyline : Ordered vertices and segments
2DCADEntity --hasRegion--> PlanarRegion : Boundary loops and holes
2DCADEntity --hasLayer--> DrawingLayer : Visibility and organisation
2DCADEntity --hasBlock--> BlockDefinition : Reusable geometry definition
2DCADEntity --hasInstance--> BlockInstance : Placed occurrence and transform
2DCADEntity --hasFrame--> CoordinateSystem2D : Origin, axes and units
2DCADEntity --hasConstraint--> GeometricConstraint : Explicit solver relation
2DCADEntity --hasParameter--> DesignParameter : Typed numerical or categorical value
2DCADEntity --hasDimension--> DrawingDimension : Nominal quantity and dimension role
2DCADEntity --hasTolerance--> ToleranceSpecification : Permissible variation
2DCADEntity --hasAnnotation--> DrawingAnnotation : Scoped technical note
2DCADEntity --hasSymbol--> DrawingSymbol : Contextual graphical meaning
2DCADEntity --hasViewport--> Viewport : Model to paper mapping
2DCADEntity --hasSheet--> DrawingSheet : Presentation and sheet identity
2DCADEntity --hasHatch--> HatchPattern : Symbolic region representation
2DCADEntity --hasReference--> ExternalReference : Versioned linked artefact
2DCADEntity --hasExchange--> ModelExchangeRecord : Translation provenance
2DCADEntity --hasRevision--> ModelRevision : Immutable version
2DCADEntity --belongsTo--> ConfigurationBaseline : Controlled manifest
2DCADEntity --addresses--> EngineeringRequirement : Requirement traceability
2DCADEntity --hasVerification--> VerificationRecord : Applicable check evidence
2DCADEntity --hasApproval--> DesignApproval : Authorised decision
2DCADEntity --hasEvidence--> EvidenceRecord : Source provenance
2DCADEntity --hasDependency--> ModelDependency : Upstream reference

INFERENCE_RULES
R01: Require persistent model identity, namespace and revision.
R02: Resolve represented design to a specific version.
R03: Record coordinate frame and units before geometric arithmetic.
R04: Reject incompatible physical dimensions.
R05: A line segment requires two distinct endpoints unless explicitly degenerate.
R06: A circle requires a positive radius and a defined centre.
R07: An arc requires angular convention, direction and sweep.
R08: A spline requires a valid parameter domain and representation data.
R09: Polyline closure requires endpoint agreement within declared tolerance or explicit closing segment.
R10: A closed loop alone does not establish a valid region; check self-intersection and holes.
R11: Layer visibility does not establish deletion or exclusion from engineering scope.
R12: Block instances retain separate identities even when sharing a definition.
R13: Compose nested transforms in declared order; flag singular transforms.
R14: Nonuniform scaling may change circles into ellipses; do not preserve radius semantics blindly.
R15: Coincidence constraints apply only to referenced entities.
R16: Parallel and perpendicular constraints require nondegenerate directions.
R17: Underconstrained geometry retains unresolved degrees of freedom.
R18: A contradictory constraint set flags infeasibility.
R19: Solver success does not establish engineering conformity.
R20: Distinguish driving, driven, basic and reference dimensions.
R21: Do not infer authoritative dimensions from raster image scale alone.
R22: Dimension overrides require explicit provenance and discrepancy checks.
R23: A hatch pattern alone does not prove material identity.
R24: Symbol interpretation requires applicable legend or standard edition.
R25: Viewport scale changes presentation, not model geometry.
R26: External references must resolve to declared versions.
R27: Missing external references flag incomplete representation.
R28: Export success does not establish semantic equivalence.
R29: Check exchange preservation of geometry, units, layers and required annotations.
R30: A 2D projection does not uniquely determine 3D geometry.
R31: Verification evidence must match model revision and requirement scope.
R32: Changed geometry or parameters trigger dependency impact assessment.
R33: Approval requires explicit authority and applicable baseline.
R34: Unknown evidence cannot establish conformity or release.
R35: Conflicting evidence remains visible until authorised resolution.
R36: A digest mismatch flags byte integrity failure, not necessarily geometric change.

DOMAIN EQUATIONS
Planar rigid transform: p_world = R(theta)p_local + t, where R=[[cos(theta),-sin(theta)],[sin(theta),cos(theta)] and angles are radians.
General affine transform: p'=A p+t; invertibility requires det(A) != 0. Homogeneous transforms compose in declared frame order.
Segment length: L=||p2-p1||. Direction angle=atan2(y2-y1,x2-x1) for nonzero length.
Circle: (x-cx)^2+(y-cy)^2=r^2, r>0. Arc length=r*abs(sweep), with sweep in radians.
Curve length: integral_a^b ||c'(u)|| du for piecewise differentiable curves.
Polygon signed area: A_s=0.5*sum_i(x_i*y_(i+1)-x_(i+1)*y_i), cyclic indexing; for simple polygons physical area=abs(A_s). Subtract valid nonoverlapping holes from outer area.
Parallel residual: cross2(u,v)=u_x*v_y-u_y*v_x; perpendicular residual: dot(u,v)=0. Normalise directions before applying angular tolerances.
Constraint system: F(q)=0, g(q)<=0. Local equality degrees of freedom=n-rank(J_F) at regular points; singularities and active inequalities need separate analysis.
Uniform viewport scale: L_paper=s*L_model in common units; dimensions remain model quantities.
Tolerance interval: [nominal+lowerDeviation, nominal+upperDeviation]; applicable only for explicitly defined size tolerances.
First-order uncertainty: Sigma_y=J Sigma_x J^T, under local linearity and specified covariance.
Exchange deviation: symmetric Hausdorff distance between nonempty compact geometry sets in common frame and units; small deviation does not establish topology or design intent equivalence.
Manifest integrity: SHA256(canonical manifest bytes) compared with trusted recorded digest; does not establish authorship.

COVERAGE
Constraint coverage=count(required constraints checked)/count(required constraints).
Reference coverage=count(resolved required references)/count(required references).
Requirement coverage=count(applicable requirements with verified evidence)/count(applicable requirements).
Exchange coverage=count(required attributes preserved and checked)/count(required attributes).
Zero denominators return not applicable. Unknown, failed and passed checks remain distinct.

CONFIDENCE AND SEMANTIC EQUIVALENCE
Record authority, applicability, completeness and consistency separately in [0,1]. Optional ranking score is their minimum, not a calibrated probability. Missing factors remain unknown. Identity requires persistent ID and namespace; revision equivalence additionally requires version and scope. Compare geometry, units, frames, constraints, layers, annotations and dependencies before asserting semantic equivalence. Visual similarity alone is insufficient.

MINI RECURSION ENGINE
Load immutable evidence snapshot and canonical registry.
Normalise identifiers, frames and units while retaining original values.
Resolve typed references and quarantine ambiguous mappings.
Evaluate bounded external geometry and constraint checks; store results as evidence rather than generating unbounded numerical assertions.
Expand rules over finite ground assertions and retain supported scope-valid candidates.
Insert one novel assertion with provenance per iteration; stop at fixed point.
Return conflicts, unresolved references, failed checks and evidence gaps separately.
Never authorise manufacturing or release from inference alone.

TRI-MAPPING
Entity mapping: 2DCADEntity -> persistent model ID + revision.
Relationship mapping: hasInstance -> block definition + occurrence ID + transform.
Flow mapping: evidence -> typed assertion -> rule -> derived assertion -> provenance.
Point/curve -> coordinate frame -> geometry check.
Constraint -> referenced entities -> solver evidence.
Dimension -> feature and tolerance -> inspection record.
Viewport -> model space and paper space -> presentation check.
Exchange -> source and target revisions -> comparison report.
Requirement -> geometry or annotation -> applicable verification record.

VALIDATION AND FAILURE MODES
Check duplicate IDs, missing references, incompatible units, degenerate curves, invalid regions, self-intersections, singular transforms, constraint conflicts, stale annotations, dimension overrides and mismatched evidence revisions. Report unknown separately from failed. Example: a visually closed polyline with a gap exceeding declared tolerance is not a verified closed boundary. A drawing printed at the wrong scale does not change the nominal model dimensions.

RECURSIVE UPDATE MODEL
Create a new snapshot for revised geometry, changed parameters or evidence. Compute changed assertions and traverse reverse dependencies to identify affected conclusions. Recompute or retract unsupported conclusions in the new snapshot; preserve historical provenance and immutable baselines. Reassess affected blocks, dimensions, exports, verification and approvals.

CONDITIONAL EXECUTION GUARANTEE
With finite ground assertion space, fixed evidence, deterministic rules and monotonic insertion of novel assertions, recursion terminates after at most the number of initially absent admissible assertions. This is not proof of correctness, geometric solver convergence or physical conformity. External solvers require independent bounds and validation.

AI SEARCH FLOW
Intent -> identify 2D CAD artefact and revision -> resolve geometry, units and frames -> retrieve constraints, dimensions and layers -> resolve references and applicable requirements -> assess evidence and conflicts -> return cited findings and unresolved gaps.
Search aliases: 2D CAD, planar CAD, computer-aided drafting, CAD sketch, vector drawing, model space, paper space, geometric constraints, CAD blocks, DXF, DWG.
Cross-domain links: CAD model, computer-aided design, engineering drawing, technical drawing, drawing dimension, drawing annotation, design parameter, design constraint, design verification.
Use source backlink as ontology navigation, not proof of individual inferred assertions.

FLOW_HASH
SHA-256: c9e452dddb32c71c725c450ae114f1b9f21437727ea2c29db2720bb8a0ce71c3
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ