Search code examples
pythonautocadautocad-scripts

How to open the model space in AutoCAD so that all objects can be seen at once?


What function exists in AutoCAD that will allow you to open a drawing model so that you can immediately see the objects in this drawing:

now it looks like this: image1

It needs to be like this: image2

tried to find a method or function in pyautocad, but couldn't find it


Solution

  • For pyautocad, use Application.ZoomExtents as described in the documentation https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-B204BFAA-B774-4C87-86D8-37007F390B5A