Methode · Feature
IsSuppressed2-Methode (Feature)
Liefert, ob ein Feature in einer oder mehreren Konfigurationen unterdrückt ist.
Syntax
Function IsSuppressed2( _
ByVal Config_opt As Long, _
ByVal Config_names As Variant _
) As VariantvUnterdrueckt = swFeat.IsSuppressed2(swThisConfiguration, Empty)Parameter
Config_optLongByVal- Für welche Konfigurationen, ein Wert aus
swInConfigurationOpts_e, etwaswThisConfiguration(1) oderswAllConfiguration(2). Config_namesVariantByVal- Nur bei
swSpecifyConfiguration: ein Array mit Namen von Konfigurationen, sonstEmpty.
Rückgabewert
Ein Array mit einem Boolean pro Konfiguration.
Beispiel
' swFeat ist ein Feature, etwa aus SelectionMgr.GetSelectedObject6 oder ModelDoc2.FirstFeature.
Dim vUnterdrueckt As Variant
vUnterdrueckt = swFeat.IsSuppressed2(swThisConfiguration, Empty)
If vUnterdrueckt(0) Then Debug.Print swFeat.Name & " ist unterdrückt"Auch bei nur einer Konfiguration kommt ein Array. Der Wert steht in (0).
Siehe auch
Verfügbarkeit
SOLIDWORKS 2004
Englisches Original: IFeature::IsSuppressed2 in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.