CAD Automation with the SOLIDWORKS API and NX Open
Md Anamul Hasan builds CAD automation as personal projects: API tools and macros that take the repetitive half out of mechanical design — bulk property editing, parametric libraries and release checks — for SOLIDWORKS and Siemens NX.
56+
Published assets & tools
345
STEP variants from one library
2
CAD platforms automated
The projects
- MetaForge — bulk property editorA personal tool for editing SOLIDWORKS custom properties in bulk: open a folder of parts and assemblies, review the properties as a table, fix the blanks and typos in one pass, and write everything back with a log. The clean-up that used to take an afternoon per project now takes minutes — and the BOM stops inheriting misspelled part names.
- Parametric fastener libraryOne parametric fastener family driven by a design table instead of hundreds of hand-modelled files. The library generates 345 STEP variants — sizes, lengths and head forms — each rebuilt from the parameters, so a variant can never drift from the family the way a copied file does.
- Macro suites for SOLIDWORKS and NX OpenThe small automations that remove daily friction: property writers that stamp drawings from the model, audit scripts that flag missing properties and stale references before release, and NX Open journals for repetitive modelling and export steps.
The metadata side of the same method is written up in the article Teamcenter PLM metadata governance, and the credential behind the SOLIDWORKS side is on the CSWE page.
Published tools from the same work
- Sheet Metal Bend CalculatorA published, working calculator from the same automation work: bend allowance, deduction, setback and K-factor calibration, with a Python module.View it live
- Teamcenter Metadata AuditA free read-only script that audits a Teamcenter CSV export for completeness, valid values, part-number pattern and duplicates.View it live
- WDM — Windows Download ManagerFree open-source software from the same workshop: multi-connection downloads with resume, queues, a scheduler and browser integration.View it live
- Teamcenter PLM Metadata GovernanceThe writing behind the audit work: standardise at the source, require less, and number automatically.View it live
How an automation earns its place
- 01Spot the repetitionThe task a designer does the same way for the tenth time is the automation candidate. Count it before building anything.
- 02Prototype the macroA small script against real files, kept deliberately narrow: one job, done well, with the undo step intact.
- 03Harden itError handling, a log of what changed, and a dry run before any write — automation that cannot be audited does not ship.
- 04Document and reuseShort notes with the tool, so the next project starts from the library instead of from memory.
Questions, answered
Are these tools from a day job?
No. Everything on this page is a personal project, designed, built and maintained outside of employment. No employer or client material — models, drawings, data or code — is used or shown here.
What is MetaForge?
A personal bulk property editor for SOLIDWORKS files: it reads the custom properties of many parts and assemblies into one table, lets you fix them together, and writes them back with a change log.
Can I use the macros and tools?
The published, usable pieces live in the resource library — the sheet metal bend calculator, the Teamcenter metadata audit script and the other tools linked above. Each resource page states its licence and what is included. The macro suites themselves are working tools from these projects, not packaged downloads.
A repetitive CAD task eating your week?
Describe the task and how often it repeats. If it can be automated, the reply says how — and what it would save.
Ask about CAD automation