SpaceClaim Training Course — Ep 01
Session 24
- Lesson
- 01
- Run Time
- 9m 4s
- Published
- May 5, 2026
- Category
- ANSYS Fluent
- Course Progress
- 0%
Introduction
Script Modeling is one of the most powerful and practical features in SpaceClaim. It allows you to store the Python code that defines your geometry, rather than working only with a static geometry file, which brings significant advantages in many workflows. These scripts can be used both inside SpaceClaim and in other code‑based or automated tasks. The software also lets you edit the script directly within the environment, and one of the most valuable capabilities in this mode is parametric design.Objectives
In this session, you will be introduced to the basic concepts of Script Modeling. You will learn how to extract the Python code for your geometry while you create the model, giving you a live script that captures each step. Through several hands‑on examples, you will see how this feature works in practice. Finally, in a guided tutorial, you will create a parametric geometry using Script Modeling. The resulting parameter becomes accessible in Workbench, where it can be used in studies such as Design of Experiments (DOE) and optimization, allowing the value to be varied automatically and the geometry refreshed on the fly. For a more in‑depth understanding of DOE and its applications, you can refer to the MR CFD website and the training course titled “Optimization (DOE and RSM): ANSYS Fluent CFD Simulation Training Course”.Summary
This session covers the fundamentals of Script Modeling in SpaceClaim. You will learn how to record Python code while drawing geometry, edit it in the built‑in Script Editor, and save or reload scripts for reuse. Using practical examples, you will see how to change dimensions directly in the code and how to define parametric designs via script parameters. By the end, you will be able to automate repetitive modeling tasks and build flexible, code‑driven geometries that integrate smoothly into larger simulation and optimization workflows.

