---
title: "AI-Assisted Geometry Template Development in MotorXP"
description: "A practical example of using Codex to develop a MotorXP-PM Halbach rotor geometry template from a reference image, documentation and existing examples."
url: "https://motorxp.com/docs/ai-assisted-geometry-template-development-in-motorxp/"
updated: "2026-09-30"
category: "AI-MotorXP Tools"
---

# AI-Assisted Geometry Template Development in MotorXP

AI coding agents can help engineers create custom geometry templates in **MotorXP**. In a practical example shared by Vladimir Kuptsov, **Codex** was used to build a MotorXP-PM template for a **Halbach array rotor with multi-step magnetization**, using a reference screenshot, MotorXP documentation and existing template examples.

Codex generated the JavaScript geometry code and JSON parameter descriptions, integrated the template into MotorXP and created its UI controls. After several debugging iterations, the template was working in about one hour, without the author manually writing or editing code.

The original LinkedIn post includes a short presentation illustrating the workflow.

[Read the full post on LinkedIn](https://www.linkedin.com/posts/vladimir-v-kuptsov_ai-assisted-geometry-template-development-activity-7476036945496780800-NvKR)

[Download example presentation](https://motorxp.com/wp-content/uploads/MotorXP_AFM_Codex_AI_geom_template_creation.pdf)
