How do I Zoom To Fit a Model in Mechanical?

Options
Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 414
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: 414
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓
    Options

    Using the following JavaScript:

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