SolidWorksMakroprogrammierung

Methode · BoundaryBossFeatureData

SetAlignmentType-Methode (BoundaryBossFeatureData)

Legt fest, wie eine Kurve des Begrenzungsfeatures ausgerichtet ist, etwa am nächsten Profil oder an der Normalen des Profils.

Syntax

Sub SetAlignmentType( _
   ByVal Direction As Long, _
   ByVal GuideIndex As Long, _
   ByVal AlignmentType As Long _
)
swBegrenzung.SetAlignmentType swBoundaryBossDirection_First, 0, swAlignWithNextSection

Parameter

DirectionLongByVal
Die Richtung als Wert aus swBoundaryBossDirection_e, etwa swBoundaryBossDirection_First.
GuideIndexLongByVal
Die Kurve, gezählt ab 0. Den gültigen Bereich liefert BoundaryBossFeatureData.GetCurvesCount.
AlignmentTypeLongByVal
Die Ausrichtung als Wert aus swBoundaryBossAlignment_e.

Beispiel

' swBegrenzung ist die Definition eines Begrenzungsfeatures in einer Richtung (BoundaryBossFeatureData), nach AccessSelections.
swBegrenzung.SetAlignmentType swBoundaryBossDirection_First, 0, swAlignWithNextSection

Bemerkungen

Die Methode gilt nur bei einem Begrenzungsfeature in einer Richtung. Ausrichtung und Tangentialität (BoundaryBossFeatureData.SetGuideTangencyType) müssen zusammenpassen:

  • bei swBoundaryBossTangency_DirectionVector und swBoundaryBossTangency_NormalToProfile: swAlignWithNextSection oder swAlignWithSectionNormal
  • bei swBoundaryBossTangency_TangencyToFace und swBoundaryBossTangency_CurvatureToFace: zusätzlich swAlignWithIsoParameter und swAlignWithOtherGeometry

Eine Änderung auf swAlignWithNextSection kam mit Feature.ModifyDefinition nicht an: BoundaryBossFeatureData.GetAlignmentType lieferte weiter den alten Wert.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2016

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

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