Personal projects

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

How an automation earns its place

  1. 01Spot the repetitionThe task a designer does the same way for the tenth time is the automation candidate. Count it before building anything.
  2. 02Prototype the macroA small script against real files, kept deliberately narrow: one job, done well, with the undo step intact.
  3. 03Harden itError handling, a log of what changed, and a dry run before any write — automation that cannot be audited does not ship.
  4. 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