Black FridayUpgrade your career this Black Friday. Get up to ₹60,000 Scholarship on IIT programsUp to ₹60K Black Friday Scholarship52 seats leftOffer ends Fri, 27 Nov, 11:59 pm IST.

Black Friday Scholarship – IIT Jammu & IIT Roorkee

The best Black Friday deal isn't a gadget. It's your next career move.

Get up to ₹60,000 Black Friday Scholarship on our PG programs with IIT Jammu and iHUB DivyaSampark, IIT Roorkee. IIT certification, 12 live sessions with IIT faculty and 100% placement assistance.

Only 52 seats left. Offer ends Fri, 27 Nov, 11:59 pm IST

3,905 engineers placed since 2019 · 1,276 hiring companies

By submitting you agree to our Terms and Privacy Policy.

Your free demo class is requested

Browse courses

Design Automation in Mechanical Engineering: Levels, Tools, Example

What design automation is, its five levels from design tables to generative design, CAD API languages checked Nov 2026, and a runnable Python configurator.

Design Automation in Mechanical Engineering: Levels, Tools, Example

Design automation in mechanical engineering means getting software to do the repetitive parts of design work: creating part variants, applying company design rules, checking models, setting up simulations and producing drawings. It ranges from a parametric model driven by a spreadsheet to scripts that run CAD through its API (application programming interface) and generative design tools that propose a shape from loads and constraints. This guide explains each level, the tools and languages used for each (checked against vendor documentation on 17 Nov 2026), and walks through a small configurator you can run yourself.

In short

  • Design automation has five practical levels: parametric models with design tables, rules and checks inside CAD, API scripts and add-ins, CAE pre-processing scripts, and generative design.
  • The SOLIDWORKS API exposes hundreds of functions callable from VBA, VB.NET, Visual C#, Visual C++ 6.0 and Visual C++/CLI (SOLIDWORKS API Help, read 17 Nov 2026).
  • An Inventor iLogic rule is "a small Visual Basic (VB.NET) program" that watches and controls parameters, features and components (Autodesk Inventor 2026 Help).
  • HyperMesh 2024 added a Python API with the same functionality as its long-standing Tcl API (Altair HyperMesh 2024 API Programmer's Guide).
  • The worked example below sizes three shafts from power and speed and writes a design table in under 40 lines of Python; the numbers are re-checked by a script.

What is design automation?

Design automation is the use of software rules, parameters and scripts to create, change and check product designs with little manual modelling. Instead of redrawing a part for every new requirement, an engineer captures the design logic once, as parameters, rules or code, and the software generates and verifies each new variant from inputs such as size, load or material.

The idea is older than most of today's CAD tools, but the goal has not changed: spend engineering time on decisions, not on repeating the same clicks. Typical wins are faster quotations for configurable products (pumps, conveyors, fixtures, brackets), fewer drawing errors, and models that follow the company design guide every time because the guide is written into the model.

One note on the name: in electronics, "design automation" usually means EDA (electronic design automation), the software for designing chips and circuit boards. That is a different field. This article is about mechanical design automation: CAD, CAE and the rules around them.

What are the levels of design automation?

Think of design automation as a ladder. Each step needs more set-up work but makes each new variant cheaper. Most companies use several steps at once: parametric models with design tables for standard parts, rules for checks, and scripts for the jobs that span many files.

Staircase of five steps: manual CAD, parametric model with design table, rules and checks, API scripts and add-ins, generative design. Each step up needs more set-up effort and less effort per variant.
The design automation ladder. Most teams climb it one step at a time, starting with clean parametric models.

1. Parametric models and design tables

A parametric model stores dimensions as named parameters linked by relations, so changing one value updates the whole part. A design table lists those parameters for many variants in a spreadsheet, one row per variant. It is the easiest automation to start with because it needs no programming, only a model built with clear design intent.

In SOLIDWORKS, a design table "allows you to build multiple configurations of parts or assemblies by specifying parameters in an embedded Microsoft Excel worksheet"; it needs Excel installed and is saved inside the model rather than linked to the original Excel file unless you link it (SOLIDWORKS 2025 Help). CATIA V5 has design tables too: "a table containing values to be potentially applied to a document to manage its parameter values" (CATIA V5 Knowledgeware documentation).

The catch: a design table only works if the model regenerates cleanly for every row. A model whose sketches are not fully constrained, or whose features reference unstable faces, will fail on the third variant. Good parametric modelling is the foundation of every step above it.

2. Rules and checks inside CAD (knowledge-based engineering)

Knowledge-based engineering (KBE) puts engineering rules into the model itself: if the load goes above a limit, switch to a thicker plate; if the hole is closer than twice its diameter to an edge, flag it. The model then makes or checks decisions every time it updates, so the design guide is applied automatically.

CATIA V5 Knowledgeware gives you formulas ("a relation specifying a constraint on a parameter"), rules ("a set of instructions, generally based on conditional statements"), checks (which report but do not change the document) and reactions that fire on events. Autodesk Inventor's iLogic does the same job with rules written in VB.NET that can monitor and control parameters, features and components.

3. API scripts, macros and add-ins

Every major CAD system exposes an API, so a program can do what a user does: open files, edit parameters, add features, create drawings, export STEP files. Scripts are the step that lets automation reach across many files, for example renaming 400 parts, updating title blocks on every drawing in a project, or building an assembly from a bill of materials.

Macros recorded in the CAD tool are the usual starting point. They are rarely clean, but reading a recorded macro is the fastest way to learn which API calls a task needs.

4. CAE pre-processing automation

Simulation teams automate the slow, repetitive part of analysis: geometry clean-up, meshing to company quality criteria, applying loads and boundary conditions, and creating report images. In HyperMesh this has long been done with Tcl scripts; the 2024 release added a Python API that "offers the same functionality as the Tcl API" (Altair). BETA CAE's ANSA scripting course states that "automation is in the core of the ANSA pre-processor" and teaches its Python API for building automated processes. This is the work Skill-Lync's CAE automation courses focus on.

5. Generative design and topology optimisation

Generative design flips the workflow. You define what the part must do (regions to keep, regions to avoid, loads, constraints, material and manufacturing method) and the software proposes shapes. In Autodesk Fusion, preserve regions mark where material must stay (such as bolt holes and mounting faces), obstacle regions mark where it must not go, and the outcomes are compared with filters and scatter plots. An Autodesk University class handout on the workflow noted that only linear static loads were accepted at the time it was written, so results still need checking for fatigue, buckling and the real manufacturing process.

Which tools and languages are used for CAD automation?

Each CAD and CAE system has its own automation interface. The table lists what each vendor documents, as read on 17 Nov 2026. Check the documentation for your installed version, because supported languages and licences change between releases.

SoftwareBuilt-in rules or tablesAPI and languagesSource
SOLIDWORKSDesign tables (Excel), configurationsAPI callable from VBA, VB.NET, Visual C#, Visual C++ 6.0, Visual C++/CLI; macros and add-insSOLIDWORKS API Help
CATIA V5Knowledgeware: formulas, rules, checks, reactions, design tablesV5 Automation (COM), used from VBA and, through the open-source pycatia module, from PythonCATIA V5 Knowledgeware guide; pycatia docs
Siemens NXExpressions, journals (recorded scripts)NX Open: .NET (VB.NET, C#), Java and C++ APIs; Python bindings are used in recent releases (open-source examples in nxopentse)Siemens NX programming fact sheet; nxopentse project
PTC CreoRelations, family tables, Pro/PROGRAMCreo TOOLKIT (C), Creo Object TOOLKIT C++ and Java (J-Link installs with Object TOOLKIT Java), VB APIPTC Creo TOOLKIT docs
Autodesk InventoriLogic rules and formsiLogic rules in VB.NET; Inventor APIInventor 2026 Help
Autodesk FusionParameters, generative design studiesDesktop scripts and add-ins in Python or C++Autodesk Fusion API docs and APS blog
FreeCAD (free, open source)Spreadsheet-driven parametersBroad Python APIFreeCAD README
HyperMeshProcess templatesTcl/Tk commands; Python API since 2024Altair 2024 API Programmer's Guide
ANSATask Manager templatesPython scripting APIBETA CAE scripting material

If you are starting out, pick the CAD tool your target employers use and learn its macro recorder and API in one language. Python covers FreeCAD, Fusion, ANSA, HyperMesh 2024+ and CATIA (through pycatia); VB.NET or C# covers SOLIDWORKS add-ins, NX Open .NET and iLogic.

How does a rule-driven configurator work? A worked example

A configurator turns customer requirements into a complete, checked design. The engineering logic lives in a rule table and a short script; the CAD model only has to accept the numbers. Here is a small one for the drive end of a shaft: given motor power, speed and a service factor, it picks the seat diameter, shoulder diameter and fillet radius, then writes a design table.

Flow diagram: requirements and a rule table feed a script that computes and checks every dimension, writes a design table CSV, regenerates CAD configurations and produces drawings, BOM and STEP files.
The configurator pattern. The script is where checks live, so a bad variant never reaches CAD.

Step 1: the engineering formulas

Torque from power and speed, with power in kW, speed in rpm and a service factor for shock loads:

For a solid shaft in pure torsion, the shear stress is . Setting equal to the allowable stress gives the minimum diameter:

This is a deliberately simple first-pass check (torsion only, no bending or fatigue) to keep the example short. A real shaft configurator would add combined bending and torsion, keyway stress concentration and a fatigue check.

Step 2: the rule table

These are example rules, written the way a company design guide would state them. They are not taken from a standard; replace them with your own:

  • Allowable shear stress for the shaft steel: 40 MPa (an assumed design value).
  • Diameters come from the bar stock the shop keeps: 12, 16, 20, 25, 30, 35, 40, 45, 50, 55 and 60 mm.
  • Shoulder diameter is at least 1.2 times the seat diameter, rounded up to a stock size.
  • Shoulder fillet radius is 0.1 times the seat diameter, rounded to 0.5 mm.

Step 3: the script

import csv, math, sys

STOCK_D = [12, 16, 20, 25, 30, 35, 40, 45, 50, 55, 60]   # mm, bar sizes in stock
TAU_ALLOW = 40.0          # MPa, assumed allowable shear stress
SHOULDER_RATIO = 1.2      # rule: D >= 1.2 d
FILLET_RATIO = 0.1        # rule: r = 0.1 d, rounded to 0.5 mm

def next_stock(x):
    for s in STOCK_D:
        if s >= x:
            return s
    raise ValueError(f"no stock bar >= {x:.1f} mm")

def configure(name, power_kw, rpm, service_factor):
    torque = 9549.3 * power_kw / rpm * service_factor            # N m
    d_min = (16 * torque * 1e3 / (math.pi * TAU_ALLOW)) ** (1 / 3)  # mm
    d = next_stock(d_min)
    D = next_stock(SHOULDER_RATIO * d)
    r = round(FILLET_RATIO * d * 2) / 2
    return {"config": name, "T_Nm": round(torque, 1), "d_min_mm": round(d_min, 2),
            "D1@Sketch1": d, "D2@Sketch1": D, "D1@Fillet1": r}

REQS = [("PUMP-2K2", 2.2, 1440, 1.25),
        ("FAN-7K5", 7.5, 960, 1.5),
        ("CONV-15K", 15.0, 720, 1.75)]

rows = [configure(*r) for r in REQS]
w = csv.DictWriter(sys.stdout, fieldnames=rows[0].keys())
w.writeheader(); w.writerows(rows)

Running it with Python 3 prints this (real output):

config,T_Nm,d_min_mm,D1@Sketch1,D2@Sketch1,D1@Fillet1
PUMP-2K2,18.2,13.24,16,20,1.5
FAN-7K5,111.9,24.24,25,30,2.5
CONV-15K,348.2,35.39,40,50,4.0

The column names follow the SOLIDWORKS dimension naming style (dimension@feature), so the last three columns can be pasted into a design table whose model has those dimension names. The torque and minimum-diameter columns stay in the file as a record of why each size was chosen.

Step 4: check the result

The 2.2 kW pump shaft needs 18.2 N m and at least 13.24 mm, so it gets a 16 mm seat; the shear stress at 16 mm is 22.6 MPa, well under 40. The 7.5 kW fan shaft needs 111.9 N m and 24.24 mm, gets 25 mm and runs at 36.5 MPa, the closest to the limit. The 15 kW conveyor shaft needs 348.2 N m and 35.39 mm; 35 mm stock is too small, so it gets 40 mm at 27.7 MPa. A verification script in our working files re-computes every one of these numbers.

Three shaft ends drawn to scale: PUMP-2K2 with seat 16 mm and shoulder 20 mm, FAN-7K5 with 25 and 30 mm, CONV-15K with 40 and 50 mm, fillet radii 1.5, 2.5 and 4 mm.
The three configurations the script produced, drawn to scale from its output.

Is it worth automating? A simple break-even estimate

Automation only pays when there are enough variants. A worked illustration with assumed numbers (not measured data): if a variant takes 45 minutes by hand and 5 minutes with the configurator, and your team makes 120 variants a year, the saving is = 80 hours a year. If building and testing the configurator takes 40 hours, it pays back after = 60 variants. Put your own numbers in before you pitch an automation project; the time to maintain the rules when the design guide changes belongs in the estimate too.

What does design automation do at each stage of product development?

Automation shows up at every stage, from first concept to end of life, though the tools change from stage to stage. The table gives a concrete example for each.

StageWhat gets automatedTypical tools
Concept designQuick sizing from requirements, trade studies, generative design optionsSpreadsheets, Python, MATLAB, generative design
Detailed designVariants from design tables, rules for wall thickness, hole spacing and standard parts, drawing creationCAD parameters, Knowledgeware, iLogic, CAD API
Simulation and analysisGeometry clean-up, meshing to quality criteria, load cases, report images, design-of-experiments runsHyperMesh Tcl/Python, ANSA Python, solver scripting
ManufacturingToolpaths from feature templates, CNC post-processing, DFM checksCAM templates and post-processors
Product lifecycle management (PLM)Part numbering, BOM export, release workflows, change noticesPLM workflows and APIs

What skills do you need for a design automation role?

Design automation engineers combine solid CAD or CAE skills with programming. Employers look for clean parametric modelling, one scripting language (Python, VB.NET or C#), the API of their main CAD or CAE tool, and enough engineering to write correct rules. Spreadsheets and basic databases help, because rules and variants often live there.

A sensible learning order for a mechanical fresher in India:

  1. Model properly in one CAD tool: fully constrained sketches, named parameters, stable references. A model that breaks on change cannot be automated.
  2. Build one design table family, for example a bracket in five sizes.
  3. Learn Python basics, then record a macro in your CAD tool and rewrite it by hand.
  4. Automate one real annoyance end to end: batch STEP export, title-block updates, or a small configurator like the one above.
  5. For CAE roles, script a meshing or load-case set-up in HyperMesh or ANSA.

Entry-level work is usually maintaining and extending existing scripts and templates, not inventing frameworks. Our article on building a design automation framework covers the next stage, and the design engineer career path shows where automation fits in a design career.

How can you learn design automation with Skill-Lync?

Skill-Lync's Post Graduate Program in Automation and Pre-Processing for FEA and CFD Analysis is a 24-week online program of 7 courses covering MATLAB, ANSA, Python and HyperMesh, including macro generation and Python for automation. For HyperMesh scripting on its own, see Automation using Tcl/Tk for HyperMesh; for the CAD foundation, the SOLIDWORKS design and analysis program or CATIA V5 basics; and for programming, Python for Mechanical Engineers. Not sure which fits? Talk to a Skill-Lync counsellor using the form on this page.

FAQ: questions engineers also ask

Is design automation the same as CAD automation?

CAD automation is the largest part of mechanical design automation, but not all of it. Design automation also covers CAE pre-processing, CAM templates, rule checks and PLM workflows. In job titles the two are often used interchangeably, so read the job description for the actual tools.

Which programming language should a mechanical engineer learn for design automation?

Python is the most versatile choice: it drives FreeCAD, Fusion, ANSA, HyperMesh 2024 and later, and CATIA V5 through pycatia, and it is used for data handling around CAD. If your company's main tool is SOLIDWORKS, Inventor or NX, add VB.NET or C# for add-ins and iLogic.

Do I need to be a software engineer to do design automation?

No. Most design automation is written by mechanical engineers who learned one language well. You need clean code habits (functions, version control, comments) and testing, but the hard part is usually stating the engineering rules correctly, which is mechanical knowledge, not computer science.

Is generative design going to replace design engineers?

Generative design proposes shapes; engineers still define the loads, constraints, manufacturing method and acceptance criteria, then check and detail the result. The generative solver in Fusion was described in Autodesk University material as accepting linear static loads, so fatigue, buckling and tolerancing still need an engineer.

What is the difference between a macro and an add-in?

A macro is a script, often recorded, that runs a sequence of commands once. An add-in is a compiled program loaded into the CAD tool with its own menus or panels, used for tools a whole team shares. Start with macros; move to add-ins when several people use the tool daily.

Sources and further reading

Want this on your résumé?

Talk to a counsellor.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.