Image quality macro

Dec 04, 2006 5 Replies

I want to make a macro that instantly ups the image quality. As little work as it is, I'm tired of going to the document properties to up the shaded and draft quality resolution. This is probably something that could be fixed with the copy settings wizard, but when I try to do that, it says I don't have administrator privileges. I don't really want to hassle our tech guy, plus I think of this as a learning opportunity. The line in the API code is



Part.SetUserPreferenceIntegerValue swImageQualityShaded, swShadedImageQualityCustom



If I change the swShadedImageQualityCustom to a number, the macro still runs, but there's no discernable change. Any suggestions?



Just increase the setting and make a part, assembly or drawing template from that file. Then the setting will be perfect every time with no work.

snipped-for-privacy@scafco.com wrote:

why not just set it to the desired level in your template?

Until you open an assembly with the part in it and the option turned on that changes the setting in all the individual parts, and where the assembly quality is set low.

I'm always wishing for this macro myself.

Matt

Here's an example of a macro that allows the user to input resolution directly. I think it can be modified to save as whatever format you wish. I hope this helps.

formatting link
Matt

Part.GetTessellationQuality & Part.SetTessellationQuality 0 to 100

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required