Generative AI with FormulaCAD

Generate real, production-ready CAD — directly from text.

FormulaCAD is designed for AI from the ground up. Models are defined in a structured language, not hidden in feature trees, so AI can generate readable, editable, and reusable geometry.

AI is not translating into CAD — it is working directly in CAD.

Why AI and FCL fit so well

  • AI writes FCL directly
  • Parameters stay visible and editable
  • Examples transfer cleanly into new models
  • Parts, assemblies, and drawings are all readable
  • FormulaCAD validates the result as real CAD

This is not AI wrapped around CAD — it is CAD expressed in a form AI understands naturally.

Getting good results

For best results:

  • use a strong reasoning model (latest GPT or Gemini Pro tier)
  • keep the session active so context is retained
  • ground the model with FormulaCAD examples and rules
  • review generated FCL before treating it as final

AI is a fast drafting and iteration partner — FormulaCAD remains the execution and validation boundary.

See detailed prompting guidance ↓

Use any AI model — FormulaCAD provides the grounding

FormulaCAD does not depend on a specific AI provider. You can use any modern reasoning model, as long as it is grounded on the FormulaCAD specification and examples.

Your own setup

Bring your own model and ground it with the FormulaCAD corpus:context specification, functions catalog, rules catalog and example components.

View the grounding corpus on GitHub →

GPT models

Use ChatGPT or API-based GPT models with the FormulaCAD context.

Best for structured output and iterative refinement.

Gemini models

Use Gemini (Pro tier recommended) for strong reasoning and longer context handling.

Works well when grounded with examples and rules.

How it works

AI generates FormulaCAD models through a structured, iterative workflow.

1. Describe the model

Provide a prompt describing the part or assembly — dimensions, constraints, or intent.

2. AI generates FCL

The model produces structured FCL based on the specification, examples, and rules.

3. FormulaCAD executes

The FCL is parsed, validated, and turned into real geometry — parts, assemblies, or drawings.

4. Iterate with feedback

Refine prompts, edit parameters, or share the generated model back with AI — including screenshots and corrections — to converge on the final design.

This loop — prompt → FCL → model → feedback — is fast, deterministic, and grounded, making AI a practical tool for real CAD workflows.

Prompting guidance

Good prompts produce better models. Focus on structure, constraints, and intent.

Be explicit about geometry

Specify dimensions, relationships, and constraints clearly. Avoid vague descriptions like “small” or “large.”

Break complex models into parts

Ask for smaller components first, then assemble them. This improves reliability and reuse.

Reference standard sections when grounded

When grounded with the relevant library index, AI can use standard sections such as ISMB, IPE, and W-shapes directly in generated FCL.

Iterate with feedback

Refine prompts based on the generated model. Provide corrections, constraints, or images to guide improvements.

Keep structure consistent

Use similar prompt patterns across iterations. This helps the model produce stable, predictable FCL.

Review before finalizing

Treat generated FCL as a draft. Validate geometry and parameters before using it in production.