SolidWorksMakroprogrammierung

Methode · PropertyManagerPageTab

AddGroupBox-Methode (PropertyManagerPageTab)

Setzt ein neues Gruppenfeld auf ein Register der PropertyManager-Seite.

Syntax

Function AddGroupBox( _
   ByVal ID As Long, _
   ByVal Caption As String, _
   ByVal Options As Long _
) As Object
Set swGruppe = swRegister.AddGroupBox(10, "Werkstoff", swGroupBoxOptions_Visible + swGroupBoxOptions_Expanded)

Parameter

IDLongByVal
Die ID, die du für das Gruppenfeld vergibst.
CaptionStringByVal
Der Titel des Gruppenfelds.
OptionsLongByVal
Werte aus swAddGroupBoxOptions_e, addiert.

Rückgabewert

Das neue Gruppenfeld (PropertyManagerPageGroup).

Beispiel

' swRegister ist ein Register (PropertyManagerPageTab) auf einer Seite, die noch nicht angezeigt wird.
Dim swGruppe As SldWorks.PropertyManagerPageGroup
Dim swSteuer As SldWorks.PropertyManagerPageControl
Set swGruppe = swRegister.AddGroupBox(10, "Werkstoff", swGroupBoxOptions_Visible + swGroupBoxOptions_Expanded)
If Not swGruppe Is Nothing Then
    Set swSteuer = swGruppe.AddControl2(11, swControlType_Combobox, "", swControlAlign_Indent, _
                                        swControlOptions_Visible + swControlOptions_Enabled, "Werkstoff wählen")
End If

Bemerkungen

Rufe den Befehl auf, bevor die Seite angezeigt wird oder nachdem sie geschlossen ist. Den Titel eines vorhandenen Gruppenfelds änderst du mit PropertyManagerPageGroup.Caption. Die Hilfe nennt an dieser Stelle PropertyManagerPageTab.Caption, das ist aber der Text des Registers.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2007

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

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