Skip to main content
Solved

SETVAR for multi-configurations is not explained!

  • Nov 9, 2026 1:51 AM UTC
  • 2 replies
  • 17 views

Mike.Jones
En-Lightened
Forum|alt.badge.img+3

I need to set variables in a multi-configuration system.  The manual does NOT explain how to do this!

From the manual:  

“SETVAR config, M, status, operand”

and down below:

“If the code is M, then the syntax for this command is as shown under "syntax" above.”

This is quite useless circular logic!  It just points me back to the top with no resolution or answer!

What do I put for an “operand” if I want to vary curvature 8 on configuration 3, for example?

SETVAR 3, M, 1, then what?  How do I tell it curvature 8?

Best answer by Sean Turner

It is confusing, I agree. I ran into this a while ago. You tell it what operand row is defined as curvature 8 in your multi-config editor. 

If config 3 row 10 is where you want a variable to be enabled:
SETVAR 3, M, 1, 10

View original

2 replies

Sean Turner
Fully Spectral
Forum|alt.badge.img+1
  • Fully Spectral
  • Answer
  • Nov 9, 2026 2:54 PM UTC

It is confusing, I agree. I ran into this a while ago. You tell it what operand row is defined as curvature 8 in your multi-config editor. 

If config 3 row 10 is where you want a variable to be enabled:
SETVAR 3, M, 1, 10


Mike.Jones
En-Lightened
Forum|alt.badge.img+3
  • Author
  • En-Lightened
  • Nov 9, 2026 5:33 PM UTC

Thank you Sean!  I wrote the Ansys folks to update the manual to say

SETVAR config, M, status, MCE row number

Whether they will or not remains to be seen.