I would like to add path scoping as an option to an ACT results object in Mechanical (i.e. an IUserResult, ".CreateResultObject()", rather than a standard user defined result, ".AddUserDefinedResult()"). Does anyone know how to achieve this?
Firstly, I am aware of these posts: https://discuss.ansys.com/discussion/157/using-act-how-can-i-create-a-result-plot-scoped-to-a-path-and-a-specific-body, https://discuss.ansys.com/discussion/2491/how-to-set-path-and-geometry-scoping-when-defining-result-object-with-path-as-the-scoping-method
However, I am unable to make this work with the ACT Result Object (rather than a standard User Defined Result). Specifically, getting/setting '.Location' leads to the error message "Value does not fall within the expected range". Even setting '.Location' back to itself results in the error message. The property appears to be used by the result object as the details change themselves to correctly match the appropriate ID number from the geometry scoping or named selection scoping.
For the geometry/NS scoping I have modified the "scoping" controller template found in the folders: ...\v222\Addins\ACT\templates\Mechanical, ...\v222\Addins\ACT\libraries\Mechanical\templates. This works well and the modification allows removal of material ID selection from the default list. I have added path selection to the list, and can also generate the secondary selection list of active paths. The issue is then getting the chosen path to transfer through to the displayed results.
As an alternative, does anyone know of an existing python script to act as a path selection controller class? I.e. just like the "GeometryObj" or "NamedSelectionObj" classes in the "scoping.py" template file (located in the second folder listed above), but for path selection instead.