Can we script the geometry and the mesh in ANSYS?

Following this question on ANSYS Discord channel, I was wondering if we can script the geometry like we do in Gmsh? For example defining Points, Lines, Circle arcs, Splines ... to create sketches and the Extrude the Curves? Define variables, for loops, if statements...

I remember in the past there was the APDL but I don't know if that can be used to script the geometry and the mesh.

P.S. This is a replicate of this question on Reddit:

Sign In or Register to comment.