Documentation Index
Fetch the complete documentation index at: https://docs.cadcamfun.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Text-to-CAD Generation
The Text-to-CAD generation system allows you to convert natural language descriptions into 3D CAD models. This functionality is powered by AI text processing and parametric CAD generation.How It Works
The Text-to-CAD generation process involves several steps:- Text Processing: The natural language description is analyzed to extract parameters, constraints, and intent
- Parameter Extraction: Dimensions, materials, and other specifications are identified
- Geometric Interpretation: The system determines what kind of 3D geometry to create
- Model Generation: A parametric 3D model is created based on the interpreted specifications
- Extension Enhancement: Any registered extensions are applied to enhance the model
- Export: The model is exported to the requested file format
Using the API
To generate a CAD model from text, you can use thehandleCadGenerationRequest method:
Request Parameters
| Parameter | Type | Description |
|---|---|---|
| textDescription | string | Natural language description of the model to create |
| format | string | Output file format (stl, obj, step, iges, json) |
| options | object | Additional options for generation and export |
Response Structure
Writing Effective Text Descriptions
To get the best results when using the Text-to-CAD system, follow these guidelines:Be Specific About Dimensions
Include specific measurements with units:Specify Shapes Clearly
Reference common geometric shapes:Define Relationships
Describe how parts relate to each other:Specify Materials
Include material information when relevant:Include Purpose
Mentioning the purpose can help with interpretation:Example Descriptions and Results
Here are some examples of text descriptions and the resulting models:Basic Shapes
Complex Descriptions
Extending Text-to-CAD Functionality
You can enhance the Text-to-CAD system by creating custom extensions. For example:- Add support for specialized shapes or features
- Implement domain-specific interpretation for fields like architecture or mechanical engineering
- Add post-processing steps for optimization or validation
