Methode · AssemblyDoc
AddComponentConfiguration-Methode (AssemblyDoc)
Legt für die zuletzt ausgewählte Komponente eine neue Konfiguration an.
Syntax
Function AddComponentConfiguration( _
ByVal Name As String, _
ByVal Comment As String, _
ByVal AlternateName As String, _
ByVal Options As Long _
) As ConfigurationSet swConfig = swAssy.AddComponentConfiguration("Lang", "", "", 0)Parameter
NameStringByVal- Name der neuen Konfiguration.
CommentStringByVal- Kommentar in den Konfigurationseigenschaften.
AlternateNameStringByVal- Name für die Stückliste, nur mit
swConfigOption_UseAlternateName. OptionsLongByVal- Optionen aus
swConfigurationOptions2_e, zusammengezählt, oder0.
Rückgabewert
Die neue Configuration.
Beispiel
' swAssy ist das AssemblyDoc, etwa per Set swAssy = swModel.
' Eine Komponente ist ausgewählt.
Dim swConfig As SldWorks.Configuration
Set swConfig = swAssy.AddComponentConfiguration("Lang", "", "", swConfigOption_DontActivate)
If swConfig Is Nothing Then Debug.Print "Nicht angelegt"Bemerkungen
Als Optionen sind swConfigOption_SuppressByDefault, swConfigOption_HideByDefault, swConfigOption_MinFeatureManager und swConfigOption_DontActivate möglich.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2005
Englisches Original: IAssemblyDoc::AddComponentConfiguration in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.