I'm having an issue where windows explorer previews aren't centered. In most cases, the part isn't visible at all. The parts are centered on the origin. Any thoughts?
SW 2015 SP5
If you set the view to isometric and zoom to fit it should help if not fix the problem. The trick is to remember to do that before saving and closing the file.
Is that what decides what the preview looks like? Because if so, it doesn't seem to be consistent for me.
A colleague of mine tends to have similar issues with the preview, I've assumed that mine would appear properly as I would place the model on isometric and zoom to fit before saving and closing. I've had a play about with some random parts that I've just created and they seem to show as ISO and centred regardless.
Thanks Stavros. It is possible that I forget to do the ISO/zoom to fit before saving (more than probable in fact, LOL). Maybe that is the entire issue. I should look into creating a macro that will do that for me, so that I get used to hitting that macro whenever I want to close the file.
Here it is.....super easy to record. (however, I noticed that the save function is not recorded and I had to add it manually).
Set swApp = _Application.SldWorks
Set Part = swApp.ActiveDocDim myModelView As ObjectSet myModelView = Part.ActiveViewmyModelView.FrameState = swWindowState_e.swWindowMaximizedPart.ShowNamedView2 "*Isometric", 7Part.ViewZoomtofit2Part.Save
See the option "Use isometric, zoom to fit view for document preview" in the following help topic:
2017 SOLIDWORKS Help - Document Properties - Image Quality
It should be on in the default document templates. So, by default, the system should be saving out an isometric, zoomed to fit image as the preview regardless of what the current view looks like when saving. The reason it is a document settings and not a system setting, is generally, users want this behavior, but they may want to turn it off for certain documents, like library features, where they want to orient to and zoom in on a particular feature on the model.
I am not sure as to why Adam's image is not centered. Are you running multiple monitors and spanning across the monitors? This should not matter, but I only suggest that because it looks like the preview is what would be on the left monitor of SOLIDWORKS being spanned across multiple monitors. I'm guessing this is somehow related to multiple monitors, screen resolution or DPI scaling, or something else display related.
This doesn't work for me (SW 2015):
I just did a test.
First, my settings:
Both of these are ticked before starting the test (yes, I made sure that the Document properties were FOR the part I was testing on) .
I open the part, slide it to the side of my screen (so that it is not centered), change a dimension, then change it back (so as to cycle a save requirement) and save the file and then close it.
In windows explorer, I get the following:
See that the part is slid all the way to the side? Just like I saved it.
In browse recent documents:
Also slid to the side. NOT centered.
Re open the part, change a dimension and change it back. This time ISO, and zoom to fit manually and then save.
Browse Recent documents:
This time it is centered....BUT ONLY BECAUSE I MANUALLY DID IT.
The setting under image quality has never worked for me.
All of your previews look like isometric view. Were they all in the isometric view when you saved or in other views? Perhaps there is something going wrong with the centering, so I'm just trying to understand if it is properly switching to isometric and just not properly centering or something else is going on.
Hello Jim, thank you for you help here:
OK, more detailed test (with a better able to see part )
Same settings as before:
Part saved like this:
Thumbnail view in Windows Explorer:
Browse Recent documents vew:
Part appears to be in isometric view, just not zoom to fit.
Re-open part and save like this (Manually select ISO and Zoom to fit before save):
Browse recent documents:
So it appears that the Isometric view portion is working, just not the zoom to fit
I'm guessing you have "Zoom to fit when changing to standard views" unchecked in Tools, Options, System Options, View. Of course, the other option shouldn't care about this one, but obviously it was overlooked when implementing (or there was a timing issue where the zoom to fit option above was implemented and "broke" the other one).
Search for "594580" in the Knowledge Base and there is an SPR for this that you can sign up to get notification of/vote for.
Or this link may take you directly there:
Adam, this may very well be your problem as well.
Thank you again Jim!!!
And you are correct.
And I just verified that this fixed my problem. Interesting.
Interesting that this says that it is fixed in SW 2014 SP5 when I am using SW 2015 SP5. I think that they got that wrong.
I'm sorry about that. So this looks to be something that was fixed, but maybe it got broken again when the option was added to allow the user to choose to save the preview as isometric regardless of the current orientation (at one point, it always did it without the user being able to choose). Can you just double check that this is indeed the cause of the problem that you are seeing and that it is fixed by turning on the option to zoom to fit when using standard views? If so, please report it to your VAR referencing this old SPR. They will either open a new SPR or reopen the old one.
Yes, it fixed the problem.......reporting to VAR now
Make sure this option is checked & it should be done automatically I believe.
That explains mine always come in as ISO and zoomed to fit, cheers!
Okay, Stavros' solution worked on most of them. The ones it didn't work on, I did a 'ctrl - q' before saving. That seems to work every time. However, I don't want to have to do this every time I check out an assembly.
That's exactly what I'm seeing. I have the same settings, it saves the image in isometric view, but it doesn't zoom to fit.
Retrieving data ...