Open the Selection Information panel in Mechanical
Landon Mitchell Kanner
Member, Employee, GitHub-issue-creator Posts: 316
✭✭✭✭
I'm looking for a script to activate the "Selection Information" panel in Workbench. My goal is to export selection information to a text file, as described here. However, the export script currently shows an error after the programmatic selection. If I manually click on the selected item to activate "Selection Information", the export works correctly. Could you advise on the specific script command needed to programmatically activate the "Selection Information" panel?
Tagged:
0
Best Answer
-
ExtAPI.Application.ScriptByName("jscript").ExecuteCommand("DS.Script.showSelectionInfoPane(true)")
You can find the function
showSelectionInfoPane
here:
C:\Program Files\ANSYS Inc\v242\aisol\DesignSpace\DSPages\scripts\DSMainScript.js0