Solved

how make thickness variable

  • 4 June 2024
  • 1 reply
  • 66 views

I need remove all variables and add it to specified surface. which used in multiconfig.

How I can do it?

var_sufrace = 6    

TheSystem.Tools.RemoveAllVariables()

surface_user = TheSystem.LDE.GetSurfaceAt(var_sufrace)
surface_user.ThicknessCell.MakeSolveVariable()

 

and how I can make Par1 variable in SC mode?
icon

Best answer by Benjamin.N 4 June 2024, 12:19

View original

1 reply

Userlevel 2
Badge

Hi Aleksandr,

the following works for me:

surface_number = 6
parameter_number = 1

cell = TheSystem.LDE.GetSurfaceAt(surface_number).GetCellAt(11 + parameter_number)
solve_type = ZOSAPI.Editors.SolveType.Variable
solve = cell.CreateSolveType(solve_type)._S_Variable
cell.SetSolveData(solve)

Best regards
Benjamin

Reply