The macro allows to control and generate meshes adapted to Free Shape Optimization problems.

The macro can be executed by simply selecting the lines for optimization. The macro will disable relaxation on these lines and enable relaxation on faces with a value between 0 and 1 (defined by the user). The mesh size of the lines for optimization can be also controlled.

Note: For more details about this macro, consult this additional document


  • Selected lines for optimization
  • Mesh size of these lines
  • Relaxation value (between 0 and 1) for the involved faces


  • A new generated mesh