SolidWorksMakroprogrammierung

Enumeration · SwConst

swSystemColorsIconColor_e-Enumeration

Farbe der Symbole in der SOLIDWORKS-Oberfläche: Standard oder klassisch.

Bibliothek SwConst · 2 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swSystemColorsIconColorDefault

Syntax

Enum swSystemColorsIconColor_e
    swSystemColorsIconColorDefault = 0
    swSystemColorsIconColorClassic = 1
End Enum

Werte

KonstanteWertBedeutung
swSystemColorsIconColorDefault0Systemoption: Farben › Symbolfarbe › Standard.
swSystemColorsIconColorClassic1Systemoption: Farben › Symbolfarbe › klassisch.

Beispiel

' swApp ist die SOLIDWORKS-Anwendung.
Dim bOk As Boolean
If swApp.GetUserPreferenceIntegerValue(swSystemColorsIconColor) = swSystemColorsIconColorDefault Then
    bOk = swApp.SetUserPreferenceIntegerValue(swSystemColorsIconColor, swSystemColorsIconColorClassic)
End If

Bemerkungen

Die Werte gehören zur Systemoption unter Extras › Optionen › Systemoptionen › Farben, Einstellung für die Symbolfarbe. Du liest und setzt sie mit SldWorks.GetUserPreferenceIntegerValue und SldWorks.SetUserPreferenceIntegerValue, jeweils mit swSystemColorsIconColor aus swUserPreferenceIntegerValue_e.

Die Einstellung gibt es nicht, wenn SOLIDWORKS mit der 3DEXPERIENCE-Plattform verbunden ist. Die Hilfe beschreibt die Werte nur mit ihrem Namen.

Siehe auch

Englisches Original: swSystemColorsIconColor_e in der SOLIDWORKS API-Hilfe ↗

Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.