How to set Path and Geometry scoping when defining Result object with Path as the scoping method
sol = DataModel.AnalysisList[0].Solution resultObj = sol.AddUserDefinedResult() resultObj.ScopingMethod = GeometryDefineByType.Path myNSBody = Model.NamedSelections.Children[0] newPath = Model.ConstructionGeometry.Children[0] resultObj.Location = Ansys.Mechanical.Selection.PathLocation(newPath,myNSBody)
See also that post, but the important command is the same: https://discuss.ansys.com/discussion/157/using-act-how-can-i-create-a-result-plot-scoped-to-a-path-and-a-specific-body