SolidWorksMakroprogrammierung

Methode · Configuration

SetColor-Methode (Configuration)

Setzt die Farbe einer Konfiguration.

Syntax

Function SetColor( _
   ByVal ColorIn As Long _
) As Boolean
bErfolg = swConfig.SetColor(RGB(0, 128, 255))

Parameter

ColorInLongByVal
Die Farbe als RGB-Wert.

Rückgabewert

True, wenn gesetzt, sonst False.

Beispiel

' swConfig ist eine Configuration, etwa aus ConfigurationManager.ActiveConfiguration.
If False = swConfig.SetColor(RGB(0, 128, 255)) Then Debug.Print "Nicht gesetzt"

Bemerkungen

Die Hilfe sagt nicht, welche Farbe gemeint ist (die des Modells in dieser Konfiguration oder eine Kennfarbe im ConfigurationManager).

Siehe auch

Verfügbarkeit

SOLIDWORKS 2003

Englisches Original: IConfiguration::SetColor in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)

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