SolidWorksMakroprogrammierung

Eigenschaft · WizardHoleFeatureData2

EndCondition-Eigenschaft (WizardHoleFeatureData2)

Liest oder setzt die Endbedingung einer Bohrung aus dem Bohrungsassistenten, etwa Blind oder Durch alles.

Syntax

Property EndCondition As Integer
swWzd.EndCondition = swEndCondThroughAll

Wert

Ein Wert aus swEndConditions_e, etwa swEndCondBlind oder swEndCondThroughAll.

Beispiel

' swModel ist das Teil (ModelDoc2), swFeat eine Bohrung aus dem Bohrungsassistenten (Feature).
Dim swWzd As SldWorks.WizardHoleFeatureData2
Set swWzd = swFeat.GetDefinition
If swWzd.EndCondition <> swEndCondThroughAll Then
    If swWzd.AccessSelections(swModel, Nothing) Then
        swWzd.EndCondition = swEndCondThroughAll
        swFeat.ModifyDefinition swWzd, swModel, Nothing
    End If
End If

Bemerkungen

Bei Endbedingungen, die eine Fläche, Ebene oder einen Eckpunkt brauchen, gibst du die Referenz mit WizardHoleFeatureData2.SetEndConditionReference an. Die Endbedingung des Gewindes ist eine eigene Einstellung: WizardHoleFeatureData2.ThreadEndCondition.

Die Eigenschaft ist als Integer deklariert, nicht als Long. Welche Endbedingungen bei Bohrungen erlaubt sind, nennt die Hilfe hier nicht.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2001Plus

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

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