Eigenschaft · SweepFeatureData
PathAlignmentType-Eigenschaft (SweepFeatureData)
Liest oder setzt, wie das Profil der Austragung am Pfad ausgerichtet wird.
Syntax
Property PathAlignmentType As LongswDaten.PathAlignmentType = swTangencyNoneWert
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 IfBemerkungen
Die Optionen im PropertyManager ergeben diese Paare aus SweepFeatureData.TwistControlType und PathAlignmentType:
- Pfad folgen, Profilverdrehung keine:
swTwistControlFollowPathundswTangencyNone - Pfad folgen, Verdrehwert angeben:
swTwistControlConstantTwistAlongPathundswTangencyNone - Pfad folgen, Richtungsvektor:
swTwistControlFollowPathundswTangencyDirectionVector, dazuSweepFeatureData.SetPathAlignmentDirectionVector - Pfad und erster Leitkurve folgen:
swTwistControlFollowPathFirstGuideCurveundswTangencyNone - Erster und zweiter Leitkurve folgen:
swTwistControlFollowFirstSecondGuideCurvesundswTangencyNone - Tangential zu angrenzenden Flächen:
swTwistControlFollowPathundswTangencyAllFaces - Minimale Verdrehung (nur bei 3D-Pfad):
swTwistControlFollowPathundswMinimumTwist - Natürlich:
swTwistControlFollowPathundswTangencyNone - Normale konstant halten:
swTwistControlKeepNormalConstantundswTangencyNone; 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.