SolidWorksMakroprogrammierung

Methode · AssemblyDoc

GetActiveGroundPlane-Methode (AssemblyDoc)

Liefert die aktive Bodenebene je Konfiguration.

Syntax

Function GetActiveGroundPlane( _
   ByVal Config_opt As Long, _
   ByVal Config_names As Variant _
) As Variant
vEbenen = swAssy.GetActiveGroundPlane(swThisConfiguration, Empty)

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 den Namen der Konfigurationen, sonst Empty.

Rückgabewert

Array mit einer Bodenebene (Feature) oder Nothing je Konfiguration.

Beispiel

' swAssy ist das AssemblyDoc, etwa per Set swAssy = swModel.
Dim vEbenen As Variant
vEbenen = swAssy.GetActiveGroundPlane(swThisConfiguration, Empty)
If IsArray(vEbenen) Then
    If Not vEbenen(0) Is Nothing Then Debug.Print vEbenen(0).Name
End If

Siehe auch

Verfügbarkeit

SOLIDWORKS 2018

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

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