SolidWorksMakroprogrammierung

Eigenschaft · SweepFeatureData

PathAlignmentType-Eigenschaft (SweepFeatureData)

Liest oder setzt, wie das Profil der Austragung am Pfad ausgerichtet wird.

Syntax

Property PathAlignmentType As Long
swDaten.PathAlignmentType = swTangencyNone

Wert

Ein Wert aus swTangencyType_e: im Text der Hilfe swTangencyNone, swTangencyDirectionVector oder swTangencyAllFaces, in der Tabelle der Hilfe auch swMinimumTwist.

Beispiel

' swModel ist das Teil (ModelDoc2), swFeat eine Austragung (Feature), swEbene eine Ebene oder ebene Fläche.
Dim swDaten As SldWorks.SweepFeatureData
Set swDaten = swFeat.GetDefinition
If swDaten.AccessSelections(swModel, Nothing) Then
    swDaten.TwistControlType = swTwistControlFollowPath
    swDaten.PathAlignmentType = swTangencyDirectionVector
    swDaten.SetPathAlignmentDirectionVector swEbene
    If False = swFeat.ModifyDefinition(swDaten, swModel, Nothing) Then swDaten.ReleaseSelectionAccess
End If

Bemerkungen

Die Optionen im PropertyManager ergeben diese Paare aus SweepFeatureData.TwistControlType und PathAlignmentType:

  • Pfad folgen, Profilverdrehung keine: swTwistControlFollowPath und swTangencyNone
  • Pfad folgen, Verdrehwert angeben: swTwistControlConstantTwistAlongPath und swTangencyNone
  • Pfad folgen, Richtungsvektor: swTwistControlFollowPath und swTangencyDirectionVector, dazu SweepFeatureData.SetPathAlignmentDirectionVector
  • Pfad und erster Leitkurve folgen: swTwistControlFollowPathFirstGuideCurve und swTangencyNone
  • Erster und zweiter Leitkurve folgen: swTwistControlFollowFirstSecondGuideCurves und swTangencyNone
  • Tangential zu angrenzenden Flächen: swTwistControlFollowPath und swTangencyAllFaces
  • Minimale Verdrehung (nur bei 3D-Pfad): swTwistControlFollowPath und swMinimumTwist
  • Natürlich: swTwistControlFollowPath und swTangencyNone
  • Normale konstant halten: swTwistControlKeepNormalConstant und swTangencyNone; mit Verdrehwert „swTwistControlConstantTwistAlongPath + swTwistControlKeepNormalConstant“

Siehe auch

Verfügbarkeit

SOLIDWORKS 2005

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

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