Created
April 10, 2025 17:07
-
-
Save MoridinBG/728e73820c47adfbfe8e7185cbd1c4ac to your computer and use it in GitHub Desktop.
Zoom SolidWorks to actual part size on screen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As Object | |
Option Explicit | |
Sub main() | |
Dim swApp As SldWorks.SldWorks | |
Dim swModel As SldWorks.ModelDoc2 | |
Dim swModView As SldWorks.ModelView | |
Set swApp = Application.SldWorks | |
Set swModel = swApp.ActiveDoc | |
Set swModView = swModel.ActiveView | |
swModView.Scale2 = 25 / 32.4 | |
swModel.GraphicsRedraw2 | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment