Use a Named Selection as Scoping of a Load or Support

Goal: Use a named selection as scoping of a load or support object in Mechanical.

Code:

load = ExtAPI.DataModel.Project.Model.Analyses[0].AddPressure()
ns = ExtAPI.DataModel.Project.Model.NamedSelections.Children[0]
load.Location = ns

Release 18.2 - © ANSYS, Inc. All rights reserved.