Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solidworks screen size

Status
Not open for further replies.

smcadman

Mechanical
Nov 6, 2002
1,589
I had found a macro to set the Solidworks screen size (the part/assembly side) to a size you want so that you can save the jpg file at the desired size, but I can't find it anymore. The reason for this is that I am using a macro on Lenny's site called RotateViewPro and I wanted to make an animated gif out of the images.
If you don't know the screen size macro I am talking about, do you know of another way to set it?

Flores
 
Replies continue below

Recommended for you

Option Explicit

You mean something along the lines of:
Code:
Dim swApp As Object
Dim modelDoc As Object
Dim modelView As Object

Sub main()

    Set swApp = CreateObject("SldWorks.Application")
    Set modelDoc = swApp.ActiveDoc
    Set modelView = modelDoc.activeView

        modelView.Scale2 = 1.43
        modelDoc.graphicsRedraw2

End Sub



Remember...
"If you don't use your head,
your going to have to use your feet."
 
Thanks Meintsi, but that wan't what I wanted (I should have said window-size instead of screen-size). If you hit the Windows "restore down" button on the top-right corner of an open file, you can drag the sides of the window smaller. For example, I can drag the window to be 2" x 2".
The macro I had previously found did just that, but there are several Solidworks sites with macros, and I haven't been able to find it again.

Flores
 
I finally found the macro I was looking for at NHCAD, called SW_SIZE.SWB at:
One note: the file window can't be maximized for it to work, it has to be smaller than maximized. After using "RotateViewPro", I used Irfanview to batch-convert the jpg's to a "gif" file.
Finally, I downloaded Microsoft GIF Animator at:

Flores
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor