How harisharandangi/textocad works
TextoCAD turns natural-language part requests into editable parametric CAD models, then builds and exports geometry. The principal workflow runs from the local web app or CLI through generation, a mode-specific geometry engine, and file export; users can also rebuild with changed parameters. README-described modes include precision, printing, organic, and robotics, plus optional requirement checking and repair. Edges are limited to relationships documented in the README or visible in the source index; unsampled subsystems are included where documented, without asserting their internal call sequence.
Main entry points: generate.py Generate or rebuild · codegen_pipeline.py Parametric codegen · llm_service.py LLM service · robot_pipeline.py Robotics pipeline
Components 25
User entry
- Local web app
textocad/server.py - Command line
textocad/cli.py - Generate or rebuild
textocad/generate.py - Local API keys
textocad/keystore.py
Generation and AI
- Runtime settings
textocad/core/config.py - Model selection
textocad/services/llm_models.py - LLM service
textocad/services/llm_service.py - AI providers
textocad/services/providers.py - Parametric codegen
textocad/services/codegen_pipeline.py - CAD intent
textocad/services/cad_intent.py - CAD document schema
textocad/services/cad_schema.py - CAD operations
textocad/services/cad_operations.py
CAD engines
- Precision compiler
textocad/services/cadquery_compiler.py - Printing engine
textocad/services/openscad_engine.py - Organic SDF
textocad/services/sdf_organic.py - Robotics pipeline
textocad/services/robot_pipeline.py - Robot compiler
textocad/services/robot_compiler.py - Code sandbox
textocad/services/codegen_sandbox.py
Validation and repair
- Requirement extraction
textocad/services/requirement_spec.py - Geometry verification
textocad/services/verification.py - Verified build repair
textocad/services/verified_build.py
Geometry and export
- Part export
textocad/services/part_export.py - CAD files
Other components
- Part designer
- AI provider
Connections 36
- Part designer → Local web app: describes part
README.md - Part designer → Command line: describes part
README.md - Local web app → Generate or rebuild: requests build
textocad/server.py - Command line → Generate or rebuild: requests build
textocad/cli.py - Local web app → Local API keys: manages keys
textocad/server.py - Generate or rebuild → Runtime settings: reads settings
textocad/generate.py - Generate or rebuild → Model selection: selects model
textocad/generate.py - Generate or rebuild → Parametric codegen: generates model
textocad/generate.py - Generate or rebuild → Organic SDF: builds organic
textocad/generate.py - Generate or rebuild → Robotics pipeline: builds robot
textocad/generate.py - Generate or rebuild → Code sandbox: runs build
textocad/generate.py - Generate or rebuild → Part export: exports result
textocad/generate.py - Model selection → AI providers: resolves provider
textocad/services/llm_models.py - LLM service → Model selection: uses selection
textocad/services/llm_service.py - LLM service → AI provider: sends prompts
- LLM service → CAD intent: uses intent
textocad/services/llm_service.py - LLM service → CAD document schema: uses schema
textocad/services/llm_service.py - LLM service → CAD operations: uses operations
textocad/services/llm_service.py - Parametric codegen → LLM service: requests generation
textocad/services/codegen_pipeline.py - Parametric codegen → Requirement extraction: extracts requirements
textocad/services/codegen_pipeline.py - Parametric codegen → Geometry verification: checks geometry
textocad/services/codegen_pipeline.py - Parametric codegen → Printing engine: uses engine
textocad/services/codegen_pipeline.py - Parametric codegen → Code sandbox: executes code
textocad/services/codegen_pipeline.py - Parametric codegen → Part export: exports build
textocad/services/codegen_pipeline.py - Precision compiler → CAD document schema: validates document
textocad/services/cadquery_compiler.py - Precision compiler → CAD operations: compiles operations
textocad/services/cadquery_compiler.py - Printing engine → CAD document schema: validates document
- Printing engine → CAD operations: compiles operations
- Robotics pipeline → LLM service: plans robot
textocad/services/robot_pipeline.py - Robotics pipeline → Parametric codegen: generates link geometry
textocad/services/robot_pipeline.py - Robotics pipeline → Part export: exports assembly
textocad/services/robot_pipeline.py - Robot compiler → CAD document schema: reads robot schema
textocad/services/urdf_worker.py - Verified build repair → Requirement extraction: extracts requirements
textocad/services/verified_build.py - Verified build repair → Geometry verification: checks build
textocad/services/verified_build.py - Verified build repair → LLM service: requests repair
textocad/services/verified_build.py - Part export → CAD files: writes files
README.md