×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Solidworks screen size

Solidworks screen size

Solidworks screen size

(OP)
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.  
http://webpages.charter.net/mkikstra/SolidWorks.ht...
If you don't know the screen size macro I am talking about, do you know of another way to set it?

Flores

RE: Solidworks screen size

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."

RE: Solidworks screen size

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources