Skip to main content

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?

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