How to modify the selection information Column Control settings?

Landon Mitchell Kanner
Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 311
25 Answers 100 Comments Second Anniversary 25 Likes
✭✭✭✭

What is the script to activate the ‘Mass’, ‘Centroid’, and ‘Moment of Inertia’ in the section information Column Control panel? Because, by default, some quantities are not activate, I need to force turn those on then I can export the section information.

Tagged:

Answers

  • Landon Mitchell Kanner
    Landon Mitchell Kanner Member, Employee, GitHub-issue-creator Posts: 311
    25 Answers 100 Comments Second Anniversary 25 Likes
    ✭✭✭✭
    ExtAPI.Application.ScriptByName("jscript").ExecuteCommand("DS.Script.CCO_Body_ShowMass=true")
    ExtAPI.Application.ScriptByName("jscript").ExecuteCommand("DS.Script.CCO_Body_ShowCentroid=true")
    ExtAPI.Application.ScriptByName("jscript").ExecuteCommand("DS.Script.CCO_Body_ShowMomentOfInertia=true")
    ExtAPI.Application.ScriptByName("jscript").ExecuteCommand("DS.Script.CCO_Body_ShowGeneral=true")
    

    You can see complete list of options in the function SetDefaultColumnControlOption() at line 368 here:
    C:\Program Files\ANSYS Inc\v242\aisol\DesignSpace\DSPages\scripts\DSSelectionInfoPaneScript.js

    See also: https://discuss.ansys.com/discussion/4534/open-the-selection-information-panel-in-mechanical/