I only found this example:
2018 SOLIDWORKS API Help - Change Display Mode to Draft Quality Example (VBA)
but it sets the view quality, not threads quality (in some cases, it helps to show "hidden threads"). For the cosmetic threads is necessary another option.
I need to set the high quality of the cosmetic threads in a drawing view but I cannot found it !
Retrieving data ...