Methode · AssemblyDoc
ActivateGroundPlane-Methode (AssemblyDoc)
Aktiviert die ausgewählte Bodenebene in bestimmten Konfigurationen.
Syntax
Function ActivateGroundPlane( _
ByVal Config_opt As Long, _
ByVal Config_names As Variant _
) As BooleanbErfolg = swAssy.ActivateGroundPlane(swThisConfiguration, Empty)Parameter
Config_optLongByVal- Für welche Konfigurationen, ein Wert aus
swInConfigurationOpts_e:swThisConfiguration(1),swAllConfiguration(2) oderswSpecifyConfiguration(3). Config_namesVariantByVal- Nur bei
swSpecifyConfiguration: Array mit den Namen der Konfigurationen, sonstEmpty.
Rückgabewert
True, wenn aktiviert, sonst False.
Beispiel
' swAssy ist das AssemblyDoc, etwa per Set swAssy = swModel.
' Die Bodenebene ist ausgewählt, etwa mit ModelDocExtension.SelectByID2.
If False = swAssy.ActivateGroundPlane(swThisConfiguration, Empty) Then Debug.Print "Nicht aktiviert"Bemerkungen
Vorher wählst du die Bodenebene aus. Je Konfiguration ist nur eine Bodenebene aktiv. Die Namen der Konfigurationen liefert ModelDoc2.GetConfigurationNames.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2018
Englisches Original: IAssemblyDoc::ActivateGroundPlane in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.