AnsweredAssumed Answered

Applying image quality macro to all components in the assembly

Question asked by Yuri Tretyakov on Jul 20, 2020
Latest reply on Jul 20, 2020 by Austin Schukar


So we are all familiar with the troubled mechanism of working with the image quality (aka model detail) setting in SolidWorks and how you often need to set it manually for each part & assembly in a large model, specifically, legacy stuff created without proper templates.

Now the macros for the single file adjustment is pretty simple, as far as I understand, and it does work on a single manual run no problems:

Dim swApp As SldWorks.SldWorks
Dim instance As SldWorks.ModelDoc2
Dim QualityNum As Integer
Sub main()
Set swApp = Application.SldWorks
Set instance = swApp.ActiveDoc
QualityNum = 5
instance.SetTessellationQuality QualityNum
End Sub

I've found and tried multiple macros templates to apply this to every file in a folder or every component in assembly but none seemed to work properly. Could someone please help me out here? Also it would be great to set the wireframe quality at lowest.


The closest to a solution I've found here was this thread, but it didn't seem to change the components' settings.


Thank you in advance!