SolidWorksMakroprogrammierung

Enumeration · SwConst

swToolBoxPropertyName_e-Enumeration

Welche Toolbox-Eigenschaft eine Stücklistenspalte vom Typ swBomTableColumnType_ToolboxProperty zeigt: Teilename, Spezifikation oder Norm.

Bibliothek SwConst · 3 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swToolBoxPropertyName_PartName

Syntax

Enum swToolBoxPropertyName_e
    swToolBoxPropertyName_PartName      = 0
    swToolBoxPropertyName_Specification = 1
    swToolBoxPropertyName_Standard      = 2
End Enum

Werte

KonstanteWertBedeutung
swToolBoxPropertyName_PartName0Teilename des Toolbox-Teils.
swToolBoxPropertyName_Specification1Spezifikation des Toolbox-Teils.
swToolBoxPropertyName_Standard2Norm, zu der das Toolbox-Teil gehört.

Beispiel

' swTable ist eine TableAnnotation einer Stückliste.
Dim vDaten As Variant, nStatus As Long
swTable.InsertColumn2 swTableItemInsertPosition_Last, 0, "Spezifikation", swInsertColumn_DefaultWidth
vDaten = swToolBoxPropertyName_Specification
nStatus = swTable.SetColumnType3(swTable.ColumnCount - 1, swBomTableColumnType_ToolboxProperty, True, vDaten)
If nStatus <> swColumnTypeStatus_Success Then Debug.Print "Spaltentyp nicht gesetzt, Status " & nStatus

Bemerkungen

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Du übergibst den Wert bei TableAnnotation.SetColumnType3 als PropertyData, wenn der Spaltentyp swBomTableColumnType_ToolboxProperty aus swTableColumnTypes_e ist. TableAnnotation.GetColumnType3 liefert ihn bei einer solchen Spalte im ByRef-Parameter PropertyData zurück.

Verwendet von

Siehe auch

Englisches Original: swToolBoxPropertyName_e in der SOLIDWORKS API-Hilfe ↗

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