SolidWorksMakroprogrammierung

Methode · AssemblyDoc

SetSpeedPakConfigurations-Methode (AssemblyDoc)

Legt fest, in welchen Konfigurationen der ausgewählten Unterbaugruppen SpeedPak gilt.

Syntax

Function SetSpeedPakConfigurations( _
   ByVal Config_opt As Long, _
   ByVal Config_names As Variant _
) As Boolean
bErfolg = swAssy.SetSpeedPakConfigurations(swAllConfiguration, Nothing)

Parameter

Config_optLongByVal
Für welche Konfigurationen, ein Wert aus swInConfigurationOpts_e: swThisConfiguration (1), swAllConfiguration (2) oder swSpecifyConfiguration (3).
Config_namesVariantByVal
Nur bei swSpecifyConfiguration: Array mit Namen, sonst Nothing.

Rückgabewert

True, wenn gesetzt, sonst False.

Beispiel

' swAssy ist das AssemblyDoc, etwa per Set swAssy = swModel.
' Unterbaugruppen mit SpeedPak sind ausgewählt.
If False = swAssy.SetSpeedPakConfigurations(swAllConfiguration, Nothing) Then Debug.Print "Nicht gesetzt"

Bemerkungen

Der Befehl wirkt auf die ausgewählten Unterbaugruppen.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2017

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

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