How do I Zoom To Fit a Model in Mechanical?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How do I Zoom To Fit a Model in Mechanical?

enter image description here

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    Using the following JavaScript:

    cmd = u'''
    DS.Script.doGraphicsFit();
    '''
    ExtAPI.Application.ScriptByName("jscript").ExecuteCommand(cmd)