How do I Zoom To Fit a Model in Mechanical?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 452
100 Answers 250 Likes 100 Comments First Anniversary
✭✭✭✭
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: 452
    100 Answers 250 Likes 100 Comments First Anniversary
    ✭✭✭✭
    Answer ✓

    Using the following JavaScript:

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