Ansys Learning Forum › Forums › Discuss Simulation › 3D Design › Driving parameter and script parameter › Reply To: Driving parameter and script parameter
July 7, 2023 at 11:13 pm
Ansys Employee
The parameter value in workbench likely not recognize the change to driving dimensions made by script:
dims_NS = Window.Groups.GetValue(Window.ActiveWindow) Â # gets list of named selections and driving dimensions in Groups tab, not published scripts or script parameters
dims_NS[0].TryGetDimensionValue() Â Â # 1st dimension, 3-tuple type. value is index 1, type is index 2 (Angular, Arc, Area, Diametric, Linear, Mass, Volume
dims_NS[0].SetDimensionValue(value)