SolidWorksMakroprogrammierung

Enumeration · SwConst

swSolidworksWeldmentEndCondOptions_e-Enumeration

Eckbehandlung bzw. Endbedingung von Strukturbauteilen in Schweißkonstruktionen, zum Beispiel Gehrung oder Stumpfstoß.

Bibliothek SwConst · 6 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swEndConditionNone

Syntax

Enum swSolidworksWeldmentEndCondOptions_e
    swEndConditionNone       = 0
    swEndConditionMiter      = 1
    swEndConditionButt1      = 2
    swEndConditionButt2      = 3
    swEndConditionTrim       = 4
    swEndConditionUseDefault = 5
End Enum

Werte

KonstanteWertBedeutung
swEndConditionNone0Keine Eckbehandlung.
swEndConditionMiter1Gehrung.
swEndConditionButt12Stumpfstoß, erste Variante.
swEndConditionButt23Stumpfstoß, zweite Variante.
swEndConditionTrim4Dem Namen nach: die Profile an der Begrenzung trimmen.
swEndConditionUseDefault5Dem Namen nach die Vorgabe verwenden.

Beispiel

' swModel ist das aktive Dokument (ModelDoc2), ein Teil mit Skizze für die Strukturbauteile.
Dim swGroup As StructuralMemberGroup
Set swGroup = swModel.FeatureManager.CreateStructuralMemberGroup
swGroup.ApplyCornerTreatment = True
swGroup.CornerTreatmentType = swEndConditionMiter
If swGroup.CornerTreatmentType = swEndConditionMiter Then
    Debug.Print "Ecken auf Gehrung"
End If

Bemerkungen

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Bei Strukturbauteilen gilt StructuralMemberGroup.CornerTreatmentType nur, wenn StructuralMemberGroup.ApplyCornerTreatment auf True steht. StructuralMemberGroup.MiterMergeCondition gibt es nur bei swEndConditionMiter.

Für Trimmen/Verlängern (FeatureManager.InsertWeldmentTrimFeature2, WeldmentTrimExtendFeatureData.CornerType) sind nur swEndConditionButt1, swEndConditionButt2, swEndConditionMiter und swEndConditionTrim gültig, nicht swEndConditionNone und swEndConditionUseDefault. Änderst du den Typ, musst du die zu trimmenden Körper und die Begrenzung neu setzen.

Verwendet von

Englisches Original: swSolidworksWeldmentEndCondOptions_e in der SOLIDWORKS API-Hilfe ↗

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