Skip to main content
Solved

how make thickness variable

  • June 4, 2024
  • 1 reply
  • 98 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?

Best answer by Benjamin.N

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

View original
Did this topic help you find an answer to your question?

1 reply

Benjamin.N
Forum|alt.badge.img
  • Visible
  • 34 replies
  • Answer
  • June 4, 2024

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings