I just published another macro on Codestack
image.png
direct link :
https://www.codestack.net/solidworks-api/options/document/image-quality-coarse/
I hope you find it useful.
Please let me know if you have any comments/questions.
Eddy
I just published another macro on Codestack
image.png
direct link :
https://www.codestack.net/solidworks-api/options/document/image-quality-coarse/
I hope you find it useful.
Please let me know if you have any comments/questions.
Eddy
Tip to speed things up :
if your files are all in the same folder, you can filter for *.SLDASM only, because of the setting, the parts in there will be affected too.
Hello Eddy Alleman
Thanks for sharing this!
I want this settings to take effect permanently on all parts (meaning I want to also apply a save operation). Is this going to do that?
Here’s the topic I started recently about this: https://forum.cadmunity.com/t/setting-image-quality-for-all-parts-in-an-assembly/3025/1
Using Batch+, I believe you would achieve what you desire since you should be able to add the ‘save command’ in the batch processing. I am permitting myself to answer as Eddy hasn’t taken a peek at this forum in a little while. It is an option inside the program.
Hi Slasher,
thanks AlexLachance I’m back, but you are faster
you can use Batch+ for this see the complete article on Codestack:
https://www.codestack.net/solidworks-api/options/document/image-quality-coarse/
There is a button to save in the UI for every file you need to be saved:
Try out the different button combinations and let us know how it went
Eddy
Amazing!
Thank you Eddy for putting this together; I didn’t realize it has auto-save capability! Let me give it a try.
Hi Eddy Alleman
I installed batch+ and it worked fantastically; thank you! I like how versatile it is; it’s much more than just a batch processing software. It even provides a log so you know which files the macro couldn’t work on.
I hate to ask this since you already helped me tremendously; but is there a way to modify below macro so that it change to slightly higher tessellation? Right now it’s a bit too coarse for my application. Let’s say in the image below; if you divide the slider by 5; then somewhere around first one (%20).
https://www.codestack.net/solidworks-api/options/document/image-quality-coarse/
Find this line:
'**********************
boolstatus = swModel.Extension.SetUserPreferenceInteger(swUserPreferenceIntegerValue_e.swImageQualityShaded, _
swUserPreferenceOption_e.swDetailingNoOptionSpecified, _
swImageQualityShaded_e.swShadedImageQualityCoarse)
The bottom line is what you care about. You have 3 choices for “swImageQualityShaded_e”
swShadedImageQualityCoarse
swShadedImageQualityFine
swShadedImageQualityCustom
The “Custom” option requires other coding to set the custom value. You could try “Fine” and see how that works for you. That option works the same as “Coarse”
SPerman
This forum is amazing.
I edited the macro and replaced Coarse with Fine and it ended up around where I wanted; it’s perfect now, thank you Sperman!